O'Reilly logo

Mastering C++ Programming by Jeganathan Swaminathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging memory leaks with Valgrind

Valgrind is a collection of open source C/C++ debugging and profiling tools for the Unix and Linux platforms. The collection of tools that Valgrind supports are as follows:

  • Cachegrind: This is the cache profiler
  • Callgrind: This works in a similar manner to the cache profiler but supports the caller-callee sequence
  • Helgrind: This helps in detecting thread synchronization issues
  • DRD: This is the thread error detector
  • Massif: This is the heap profiler
  • Lackey: This provides basic performance-related statistics and measurements about your application
  • exp-sgcheckThis detects stack overruns; it is generally useful in finding issues that Memcheck can't find
  • exp-bbvThis is useful for computer architecture ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required