• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to ease the burden on the Garbage Collector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to ease the burden on the Garbage Collector? (From: Gabriel Zachmann <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Bill Bumgarner <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Gabriel Zachmann <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Jens Alfke <email@hidden>)
 >Re: How to ease the burden on the Garbage Collector? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: real verses Virtual memory
  • Next by Date: Re: real verses Virtual memory
  • Previous by thread: Re: How to ease the burden on the Garbage Collector?
  • Next by thread: Re: How to ease the burden on the Garbage Collector?
  • Index(es):
    • Date
    • Thread