Valgrind

Valgrind is a programming tool for memory debugging, memory leak detection, and profiling.

Documentation

Usage

Compile software for debugging with gdb, put in BuildFile:

<flags CXXFLAGS="-O0 -g3 -fno-inline">

Now recompile. This way valgrind will put numbers of line in his output. You can run valgrind using:

  • valgrind --leak-check=full cmsRun -p mycfg
  • valgrind --tool=memcheck cmsRun -p mycfg

-- LeszekGrzanka - 21 Aug 2008


This topic: TOTEM > WebLeftBar > CompOfflineSw > CompOfflineValgrind
Topic revision: r2 - 2008-08-21 - LeszekGrzanka
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback