Let capture_example_bloat script also capture dev mode sizes

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
This commit is contained in:
Daniel Egger 2019-08-17 16:59:44 +02:00
parent 35ba490c2a
commit a34f6c84e6
1 changed files with 5 additions and 1 deletions

View File

@ -1,13 +1,17 @@
filename="bloat_log_"`date -Iminutes`".txt"
filenamenoopt="bloat_noopt_log_"`date -Iminutes`".txt"
for i in `find examples -name "*.rs"`; do
name=$(echo $i | sed -e "s,examples/,,g" -e "s,\.rs,,g")
echo "Processing example $name"
echo >>$filename
echo >>$filenamenoopt
echo "Bloat for example $name" >>$filename
cargo bloat --release --features=stm32f042,rt --example $name >>$filename
echo "Bloat for example $name" >>$filenamenoopt
cargo bloat --release --example $name --features="stm32f042,rt" -n 60 >>$filename
cargo bloat --example $name --features="stm32f042,rt" -n 60 >>$filenamenoopt
echo "Captures bloat for all examples into $filename"