Skip to content

Commit d8ac6e5

Browse files
webmaster128maurolacy
authored andcommitted
Keep log files for manual inspection
1 parent 249910a commit d8ac6e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ artifacts/
1515

1616
# Auto-gen
1717
.cargo-ok
18+
19+
# Log files (e.g. memory profiling)
20+
*.log

packages/vm/bin/module_size.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ $SUM_UTIL $RESULTS >$SUMMARY
2525

2626
# Compute compile_only() total (heap) bytes
2727
echo -n "module size (unserialized): "
28-
(tac $SUMMARY | sed -n '1,/^ n /p' | grep "$PROG.rs:$LINE" | cut -f2 -d\( | cut -f1 -d\) | sed 's/,//g;s/B//' | sed ':a;N;s/\n/+/;ta' | bc -l | sed 's/$/ bytes/') && rm -f $RESULTS $SUMMARY
28+
(tac $SUMMARY | sed -n '1,/^ n /p' | grep "$PROG.rs:$LINE" | cut -f2 -d\( | cut -f1 -d\) | sed 's/,//g;s/B//' | sed ':a;N;s/\n/+/;ta' | bc -l | sed 's/$/ bytes/')

0 commit comments

Comments
 (0)