Re: Instruments, how to fix leak in C Lib
Re: Instruments, how to fix leak in C Lib
- Subject: Re: Instruments, how to fix leak in C Lib
- From: David Hoerl <email@hidden>
- Date: Wed, 02 May 2012 14:38:31 -0400
Look at Valgrind - it works on the Mac now. What you do is have a demo
app or even a GUI that launches, runs, then quits. You enter your app
and args as arguments to valgrind when you run it.
Valgrind monitors every malloc, and when the app/program quits tells you
not only what leaks you have, but the stack trace that got you to the
allocation. Absolutely amazing. I've used it with several open source
libraries I support.
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden