Selected Valgrind Options

I usually use this:

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

But I'm not sure that, on the one hand, he checks everything, on the other hand, is too verbose. What is your favorite option?

+4
source share
2 answers

--tool=callgrind

And when applicable, --instr-atstart=no

+3
source

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

+5
source

All Articles