Question

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?

Was it helpful?

Solution

--tool=callgrind

And when applicable, --instr-atstart=no

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top