• 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: Finding Core Data objects in Instruments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Core Data objects in Instruments


  • Subject: Re: Finding Core Data objects in Instruments
  • From: "Melissa J. Turner" <email@hidden>
  • Date: Tue, 31 Aug 2010 13:22:23 -0700

On Aug 30, 2010, at 7:35 PM, Rick Mann wrote:

> We're having a hard time tracking down our smaller leaks in our iPad app. When running on the simulator, one thing we noticed is that none of our Core Data objects shows up in Leaks or Allocations (all of them have custom NSManagedObject subclasses).
>
> Does Core Data never actually instantiate our objects, instead somehow usurping each individual action implementation and instantiating its own kind of objects?
>
> Why do we not see NSManagedObject, nor any of our subclasses, in Leaks or Allocations?


Some from column A, some from column B.

CoreData will create custom subclasses of your classes and instantiate those instead of your classes (this shows up if you run heap from the command line).

More relevant to your question, CoreData uses a different allocation path than most of the rest of Cocoa with the result that many objects allocated by CoreData (particularly those which are allocated in bulk, like object ids, managed objects, etc) appear in Leaks/Allocations as anonymous malloc blocks. You should be able to play around with allocating extra instances during startup to figure out what block size maps to what managed object class(es).

+Melissa

_______________________________________________

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: 
 >Finding Core Data objects in Instruments (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Finding source of EXC_BREAKPOINT crash
  • Next by Date: Re: core data issues iOS 4.0.2
  • Previous by thread: Finding Core Data objects in Instruments
  • Next by thread: Need specialized keyboard for iPad app
  • Index(es):
    • Date
    • Thread