views:

407

answers:

2

I usually use this:

valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode

But not sure if on one hand it checks everything, on the other hand too verbose. What's your favorite option?

+3  A: 

--tool=callgrind

And when applicable, --instr-atstart=no

John Zwinck
+3  A: 

SVN valgrind has --track-origins=yes, which actually makes uninitialized value warnings useful.

alex strange
--track-origins is in Release 3.4.0, released 2 January 2009. If you have an old version, compile from source and/or bug your distro!
jwhitlock