valgrind

valgrind

TLDR

Use the (default) Memcheck tool to show a diagnostic of memory usage by program

>_ valgrind [program]
copy

Use Memcheck to report all possible memory leaks of program in full detail

>_ valgrind --leak-check=full --show-leak-kinds=all [program]
copy

Use the Cachegrind tool to profile and log CPU cache operations of program

>_ valgrind --tool=cachegrind [program]
copy

Use the Massif tool to profile and log heap memory and stack usage of program

>_ valgrind --tool=massif --stacks=yes [program]
copy

Copied to clipboard
free 100$ digital ocean credit