Re: [gnome-love] Valgrind
- From: Paolo Borelli <pborelli katamail com>
- To: Claudio Saavedra <csaavedra alumnos utalca cl>
- Cc: gnome-love gnome org
- Subject: Re: [gnome-love] Valgrind
- Date: Wed, 28 Sep 2005 11:40:49 +0200
Il giorno mer, 28/09/2005 alle 11.09 +0200, Claudio Saavedra ha scritto:
Hi all,
I'm starting to use valgrind to look for leaks, but I haven't found any
resource to analyse the valgrind output in a more friendly way. I have
seen once ago in p.g.o some charts made from the valgrind output, anyone
have idea about these tools?
I usually just run something like:
valgrind --tool=memcheck --leak-check=yes --leak-resolution=high
--num-callers=20 my_proggie &> valg.dump
and then just look at valg.dump
The leaks are reported at the bottom. Try to concentrate on those marked
"definately lost" since the others may be bogus.
For each leak you get a backtrace pointing you to the the file and line
where the leak happened. If the trace is not long enough tweak
--num-callers.
There is also a tool called alleyhoop which provides a gnomey frontend
to valgrind, but I'm not familiar with it.
paolo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]