• 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: NSTableView memory usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView memory usage


  • Subject: Re: NSTableView memory usage
  • From: j o a r <email@hidden>
  • Date: Mon, 14 Apr 2008 08:16:51 -0700


On Apr 14, 2008, at 3:15 AM, Valentin Dan wrote:
At 1500 rows, “ps –A -u” reports it uses 39.0% memory (there is 1GB of memory on this Mac). After the panel containing the NSTableView is closed, the app uses 1.8% (just as before opening it). The panel in question doesn’t have anything else on it …

So is this a major memory leak or a normal situation?


If this is normal or not probably depends on the size of the objects that you represent in the table view. You might only expose the "name" property of an object in the table view, but the object itself could of course have a ton of other properties that uses up a lot of memory.

As you get back the memory when you close the panel, it doesn't sound like you have a memory leak per se.

Whenever you think that you use too much memory, or want to track down some of the memory that you inevitably leak, I'd suggest that you take a look at the performance tool Instruments, in particular the Object Allocations and Leaks templates that should be able to answer these questions.

j o a r


_______________________________________________

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: 
 >NSTableView memory usage (From: "Valentin Dan" <email@hidden>)

  • Prev by Date: Re: NSMatrix Content Binding
  • Next by Date: Re: "hooking" into another app
  • Previous by thread: NSTableView memory usage
  • Next by thread: Re: NSTableView memory usage
  • Index(es):
    • Date
    • Thread