valgrind Command Examples

Wrapper for a set of expert tools for profiling, optimizing and debugging programs. Commonly used tools include memcheck, cachegrind, callgrind, massif, helgrind, and drd. More information: http://www.valgrind.org.

valgrind {{program}}

valgrind --leak-check=full --show-leak-kinds=all {{program}}

valgrind --tool=cachegrind {{program}}

valgrind --tool=massif --stacks=yes {{program}}