Re: Garbage Collection makes my app look fat
Re: Garbage Collection makes my app look fat
- Subject: Re: Garbage Collection makes my app look fat
- From: Keith Duncan <email@hidden>
- Date: Mon, 25 Feb 2008 14:51:22 +0000
using Activity Monitor
Don't use Activity Monitor to monitor your memory usage. Since you're
developing on Leopard you should use Instruments (as you mention) to
see what is eating up all of your memory. What objects are taking up
the space, are they even objects?
My drawing is highly optimized for memory use (no caching, etc.),
yet I can't understand why the memory skyrocketed with every draw. I
turned all that off, yet still had the same problem. I tried using
Shark and Instruments, Omni Object Meter, anything I could to figure
out what was going on, and there seemed to be no real culprit.
Are you using any frameworks which despite being compiled GC supported
are known not to be GC savvy. CoreVideo springs to mind.
Then I turned off Garbage Collection, and memory usage plummeted to
the level I was expecting.
If you've developed your app to use retain count logic then why make
the switch? It isn't recommended that you start compiling non-GC
designed code with GC enabled: there can be a lot of issues with that.
See this thread for one: http://lists.apple.com/archives/Cocoa-dev/2008/Feb/msg01893.html
Keith
_______________________________________________
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