Re: How to ease the burden on the Garbage Collector?
Re: How to ease the burden on the Garbage Collector?
- Subject: Re: How to ease the burden on the Garbage Collector?
- From: Jens Alfke <email@hidden>
- Date: Sat, 10 Oct 2009 12:42:31 -0700
On Oct 10, 2009, at 1:14 AM, Gabriel Zachmann wrote:
So, is 20% CPU time for the GC thread normal?
That's a lot more than I'd expect based on what you're doing. Either
you've got code you haven't shown us that's allocating a ton of
objects during the animation, or some system framework (CoreAnimation,
presumably) is allocating a lot of collectable objects.
I've used CA in some GC'd apps and haven't seen noticeable collection
activity, but maybe I haven't used the same APIs as you.
What you need, I think, is to find out how to use Instruments or Shark
to track only the allocation of collectable objects. Then you can see
where that's occurring. I don't know how to do that, myself, but I'm
sure someone here does.
—Jens_______________________________________________
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