Forrest logo
back to context overview

valgrind

List of commands for valgrind:

  • valgrind:tldr:0afd9 valgrind: Use the Cachegrind tool to profile and log CPU cache operations of `program`.
    $ valgrind --tool=cachegrind ${program}
    try on your machine
    explain this command
  • valgrind:tldr:333ad valgrind: Use the Massif tool to profile and log heap memory and stack usage of `program`.
    $ valgrind --tool=massif --stacks=yes ${program}
    try on your machine
    explain this command
  • valgrind:tldr:69fc2 valgrind: Use the (default) Memcheck tool to show a diagnostic of memory usage by `program`.
    $ valgrind ${program}
    try on your machine
    explain this command
  • valgrind:tldr:d7e47 valgrind: Use Memcheck to report all possible memory leaks of `program` in full detail.
    $ valgrind --leak-check=full --show-leak-kinds=all ${program}
    try on your machine
    explain this command
back to context overview