Valgrind

From MultimediaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Valgrind is a suite of tools for debugging and profiling Linux programs.

The Callgrind tools allow profiling of a program.

When it is used with "--dump-instr=yes --trace-jump=yes" and the result is displayed with [1], you can see:

  • function call tracing
  • executed calltree graphing
  • jmp tracing and graphing

Example

$ valgrind --tool=callgrind --dump-instr=yes --trace-jump=yes ffplay
$ kcachegrind callgrind.$pid