• 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: NSUndoManager retain/release of arguments - ad infinitum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager retain/release of arguments - ad infinitum


  • Subject: Re: NSUndoManager retain/release of arguments - ad infinitum
  • From: Charles Srstka <email@hidden>
  • Date: Sun, 6 Feb 2011 09:44:55 -0600

On Feb 6, 2011, at 6:35 AM, Jerry Krinock wrote:

> On 2011 Feb 05, at 21:16, Charles Srstka wrote:
>
>>> During execution, I'd see the following:
>>>
>>> (timestamp) (code location) someObjectName: allocated
>>> (timestamp) (code location) someObjectName: init
>>> (timestamp) (code location) someObjectName: retained
>>> (timestamp) (code location) someObjectName: released
>>> (timestamp) (code location) someObjectName: released
>>> (timestamp) (code location) someObjectName: dealloc
>
>> This is precisely what you can do … using the Instruments tool….
>
> Which "Instrument" gives you a log precisely like that?

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. Seems pretty much exactly what the OP wants.

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

  • Follow-Ups:
    • Re: Debugging Allocations. Was:NSUndoManager
      • From: Jerry Krinock <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>)

  • Prev by Date: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Next by Date: Re: Debugging Allocations. Was:NSUndoManager
  • Previous by thread: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Next by thread: Re: Debugging Allocations. Was:NSUndoManager
  • Index(es):
    • Date
    • Thread