Skip to content

Code for lighting talk about Valgrind and Valgrind tools. Usage examples and more.

Notifications You must be signed in to change notification settings

the-risk-taker/valgrind

Repository files navigation

Valgrind

Valgrind Logo

Some examples of Valgrind and Valgrind tools:

  • Memcheck
  • Cachegrind
  • Callgrind
  • KCachegrind
  • Helgrind
  • DRD
  • Massif

Building

Building examples with CMake (from repository root directory):

cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --parallel

Note

We need debug information to feed Valgrind and some optimizations might also be necessary to have less noisy output, hence the -DCMAKE_BUILD_TYPE=RelWithDebInfo option.

Running

There are runnable targets, for example: run-helgrind-example, to run, use the following command:

cmake --build build --target run-helgrind-example

Check CMakeLists.txt in each directory to find runnable examples.

About

Code for lighting talk about Valgrind and Valgrind tools. Usage examples and more.

Topics

Resources

Stars

Watchers

Forks