Skip to content

Commit 11eb436

Browse files
committed
Make: added alloc_trace target
1 parent 04ff3b9 commit 11eb436

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,17 @@ test: output/tester/tester
6262
testv: output/tester/tester
6363
@output/tester/tester -v test
6464

65-
trace: $(C2C)
66-
$(C2C) c2c --trace-calls -o c2c_trace
65+
output/c2c_trace/c2c_trace:
66+
$(C2C) c2c --trace-calls -o c2c_trace --fast
67+
68+
69+
trace: $(C2C) output/c2c_trace/c2c_trace
6770
C2_TRACE="min=10;min2=1;mode=3;name=*;fd=2" output/c2c_trace/c2c_trace c2c --test 2> output/c2c/calls
71+
cat output/c2c/calls
72+
73+
alloc_trace: $(C2C) output/c2c_trace/c2c_trace
74+
C2_TRACE="min=10;min2=1;mode=3;name=stdlib.malloc,stdlib.calloc;fd=2" output/c2c_trace/c2c_trace c2c --test 2> output/c2c/calls
75+
cat output/c2c/calls
6876

6977
errors:
7078
@( grep -n 'error:' `find . -name build.log` | sed -E 's/build.log:[0-9]+://' ; true )

0 commit comments

Comments
 (0)