• 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: CoreData and memory leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData and memory leaks


  • Subject: Re: CoreData and memory leaks
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 21 Jun 2010 11:19:28 -0600

On Jun 20, 2010, at 7:42 AM, unixo wrote:

> In my coredata application, I noticed a weird behavior when closing document windows; to be sure this was not related with some memory leaks introduced by me, I created a new document-based coredata project, without adding any kind of customization.
>
> I did the following test, even if it's not a scientific approach:
> - I run the application, then launched Activity Monitor and filtered by this application name;
> - I created a lot of new documents and closed them all.
>
> I noticed that, after closing all the documents, real memory occupation increased compared to the startup; I did the previous two steps again, and memory occupation increased a little bit more.
>
> Is it normal that this kind of application (coredata) does this way?

Maybe. Did you try running it in Instruments using the object alloc & leaks instruments? For various reasons, Activity Monitor is a poor memory debugging tool. Instruments, OTOH, will show you what is really going on.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

  • Follow-Ups:
    • Re: CoreData and memory leaks
      • From: unixo <email@hidden>
References: 
 >CoreData and memory leaks (From: unixo <email@hidden>)

  • Prev by Date: Re: NSView background color
  • Next by Date: docs, KVO and NSUserDefaults etc.
  • Previous by thread: CoreData and memory leaks
  • Next by thread: Re: CoreData and memory leaks
  • Index(es):
    • Date
    • Thread