Re: question re: mem leak analysis and RSIZE
Re: question re: mem leak analysis and RSIZE
- Subject: Re: question re: mem leak analysis and RSIZE
- From: John Clayton <email@hidden>
- Date: Fri, 28 Nov 2008 18:10:31 +0100
Update to problem:
it turns out, that I wasn't even bothering to free one of my texture
generators (built on quicktime, takes up a ton of ram). freeing that
object in turn made the program memory footprint much more stable -
pretty obvious.
BUT: why would Instruments not pick this up? In the end, I found this
particular leak by using valgrind.
--
John Clayton
Skype: johncclayton
On 28/11/2008, at 5:02 PM, John Clayton wrote:
Hi All,
I'm at the stage of performing a bit of leak analysis on my program,
and I find something weird happening. Specifically:
1. the program, as reported by both Instruments w/Leaks and Mallog
Debug isn't leaking more than 1.3k per document open/close cycle
2. multiple document open/close cycles cause the RSIZE to increase
by approx 7 meg each cycle (as reported by Activity Monitor)
e.g before / after RSIZE values on each doc open/close cycle are (in
Megs):
1. 45 doc opened / 33 after doc closed.
2. 53 / 41
3. 61 / 49
4. 69 / 56
So each document cycle is someone swallowing 7 megs. Leaks and
MallocDebug are showing something like 1.5k in leaks - so I wonder,
is my program leaking? Is it something else? How can I track this
or even begin to *understand* what might be happening? I would have
thought Instruments would have caught this and reported it?
I'm not using Zombies, but I do have the debug library symbols
installed.
Any tips / help appreciated.
Thanks
--
John Clayton
Skype: johncclayton
_______________________________________________
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:
@mac.com
This email sent to email@hidden
_______________________________________________
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