Skip to content

Commit a34f6c8

Browse files
committed
Let capture_example_bloat script also capture dev mode sizes
Signed-off-by: Daniel Egger <[email protected]>
1 parent 35ba490 commit a34f6c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/capture_example_bloat.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#!/bin/bash
22

33
filename="bloat_log_"`date -Iminutes`".txt"
4+
filenamenoopt="bloat_noopt_log_"`date -Iminutes`".txt"
45

56
for i in `find examples -name "*.rs"`; do
67
name=$(echo $i | sed -e "s,examples/,,g" -e "s,\.rs,,g")
78
echo "Processing example $name"
89
echo >>$filename
10+
echo >>$filenamenoopt
911
echo "Bloat for example $name" >>$filename
10-
cargo bloat --release --features=stm32f042,rt --example $name >>$filename
12+
echo "Bloat for example $name" >>$filenamenoopt
13+
cargo bloat --release --example $name --features="stm32f042,rt" -n 60 >>$filename
14+
cargo bloat --example $name --features="stm32f042,rt" -n 60 >>$filenamenoopt
1115
done
1216

1317
echo "Captures bloat for all examples into $filename"

0 commit comments

Comments
 (0)