On Feb 5, 2011, at 6:37 PM, John Bartleson wrote:

> Let me make one final point: this topic would have never come up if I had had 
> a tool that would let me track the
> lifetime of an object. Very hypothetically, suppose I could write my code, 
> execute it, and then, in the debugger or
> whatever, could issue a command like "Track someObjectName". 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
> 
> II realize that a tool like this appears to be against your stated 
> philosophy, Graham, but it sure would
> have saved me and the Cocoa list a lot of time and frustration.

This is precisely what you can do (among with many other things) using the 
Instruments tool, included with Xcode.

Charles_______________________________________________

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 arch...@mail-archive.com

Reply via email to