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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to