Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 701 Bytes

DEV.md

File metadata and controls

51 lines (35 loc) · 701 Bytes

Compile with debug flags

make clean
make BUILD_DEBUG=1 all test

Compile with coverage and profiling options

make clean
make BUILD_GCOV=1 BUILD_GPROF=1 all test

Coverage output

make check-gcov-quick

make check-gcov-full

make check-lcov

Profiling

Runtime profiling with gprof

PROGRAM="./.build/t/canary"
$PROGRAM
gprof $PROGRAM

Memory profiling with Valgrind

Need to make sure that ASAN is disabled.

Run Valgrind on all the test programs:

make check-valgrind

or on an individual program

PROGRAM="./.build/t/canary"
make BUILD_ENABLE_ASAN=0 all test
valgrind --leak-check=full $PROGRAM