• 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: Debugging Allocations. Was:NSUndoManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Allocations. Was:NSUndoManager


  • Subject: Re: Debugging Allocations. Was:NSUndoManager
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 7 Feb 2011 11:00:41 -0600

On Feb 6, 2011, at 9:18 PM, Jerry Krinock wrote:

> On 2011 Feb 06, at 07:44, Charles Srstka wrote:
>
>> Object Allocations, with “Record Reference Counts” checked, will let you choose an object and show exactly where and when it was allocated, deallocated, retained, released, and even autoreleased. If you open the Extended Detail pane, you can get a full stack trace for each one of these occurrences, and you can double-click one of those frames to have it display the source file inline right in Instruments with the line at which the object was released, retained, etc. highlighted.
>
> Thank you, Charles.  I've filed that advice away and hope that I never need to use it.
>
> I've had mostly negative experiences with Object Allocations – execution slowing to a crawl, consuming memory until, it can't get any more, then crashing.  Your description of all it does kind of explains why.  In contrast, my brute force method only logs for one class.
>
> But maybe since I have a big 64-bit Mac now with whoopee 4 GB of RAM, it will work better.

It works pretty well on my MBP, and is incredibly handy when you’re trying to track down a leak or a memory-related crash. To get the logs for retain, release, etc., though, you have to make sure to get info on the ObjectAlloc instance and check the “Record Reference Counts” box. Otherwise, you just get allocations and deallocations.

Charles_______________________________________________

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: 
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: John Bartleson <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Charles Srstka <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Jerry Krinock <email@hidden>)
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: Charles Srstka <email@hidden>)
 >Re: Debugging Allocations. Was:NSUndoManager (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Escape in NSTableView cell
  • Next by Date: Re: Printing Appears Very Small in Lower-Left Corner of Page
  • Previous by thread: Re: Debugging Allocations. Was:NSUndoManager
  • Next by thread: Triggering a Core Data Store action ...
  • Index(es):
    • Date
    • Thread