valgrind命令手册Wrapper for a set of expert tools for profiling, optimizing and debugging programs. Commonly used tools include
memcheck,cachegrind,callgrind,massif,helgrind, anddrd. More information: http://www.valgrind.org.
program:valgrind {{program}}
program in full detail:valgrind --leak-check=full --show-leak-kinds=all {{program}}
program:valgrind --tool=cachegrind {{program}}
program:valgrind --tool=massif --stacks=yes {{program}}