Re: Memory profiling tool for CPP apps??
--- Michael Marsh <michael.a.marsh@gmail.com> wrote:
> On Thu, 20 Jan 2005 08:38:09 -0800 (PST), Ibrahim Mubarak
> <ibmub80@yahoo.com> wrote:
> > I also checked valgrind and its frontend alleyoop. But its not of much help either (even with
> 3
> > -v).
>
> I've never used alleyoop, but I've had very good luck with valgrind
> (on a codebase of 40+K lines of C++). I usually run it from the
> command line and pipe the output to a file. For memory leaks, I use:
> $ valgrind --leak-check=yes --leak-resolution=high --num-callers=10
> You might have to increase --num-callers, depending on where the leak
> is occurring. I've never really found it necessary to use the verbose
> flag.
>
Thanks a lot Michael,
I guess I totally forgot that valgrind and memcheck have each their own command-line flags. Pfff,
I should have checked the manual a little more carefully. That's what I am doing at the moment!
I just found out that the leak-check is off by default. So I guess that's where I will start. :P
ib
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
Reply to: