valgrind
all
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 info →Examples (4)
Use the (default) Memcheck tool to show a diagnostic of memory usage by `program`
valgrind programUse Memcheck to report all possible memory leaks of `program` in full detail
valgrind --leak-check=full --show-leak-kinds=all programUse the Cachegrind tool to profile and log CPU cache operations of `program`
valgrind --tool=cachegrind programUse the Massif tool to profile and log heap memory and stack usage of `program`
valgrind --tool=massif --stacks=yes programmade by @shridhargupta | data from tldr-pages