Valgrind: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
No edit summary
 
m (English edits)
 
Line 1: Line 1:
[http://valgrind.org/ Valgrind] is an suite of tools for debugging and profiling Linux programs.
[http://valgrind.org/ Valgrind] is a suite of tools for debugging and profiling Linux programs.


The Callgrind tools allow to profile a program.
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 [http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindIndex], you could see :
- function call tracing
- executed calltree graphing
- jmp tracing and graphing
 
 
 
== Exemple ==


When it is used with "--dump-instr=yes --trace-jump=yes" and the result is displayed with [http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindIndex], you can see:
* function call tracing
* executed calltree graphing
* jmp tracing and graphing


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


[[Category: RE Tools]]
[[Category: RE Tools]]

Latest revision as of 14:08, 21 April 2007

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