Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 855 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 855 Bytes

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.