Re: Stupid Instruments - how do I get NSZombies?
Re: Stupid Instruments - how do I get NSZombies?
- Subject: Re: Stupid Instruments - how do I get NSZombies?
- From: William Squires <email@hidden>
- Date: Fri, 23 May 2014 07:03:28 -0500
Thanks - got it to work - it was leaking an NSCalerdarDate which pointed to my RBSDate class. After that, it was a cinch to find the problem. Silly me, I sent release to an autoreleased temp variable obtained from a convenience method! :/On May 22, 2014, at 6:37 PM, Jens Alfke < email@hidden> wrote: On May 22, 2014, at 3:13 PM, William Squires < email@hidden> wrote: Is this what NSZombies are for? And if so, how do I get them to tell me what object is getting sent the release message twice? I've checked to make sure "Instrument code" is set to YES
I don’t think this setting has anything to do with using zombies. At least, I’ve never found a need to enable it. , and I went into the target's scheme on the left side and selected the "profile". This brought up a pane on the right, where I set "Build Configuration" to "Debug" and "Instrument" to "Zombies". I then select "Build for Profiling". This succeeds, but does nothing further. If I click the "Run" button, it runs it, but Instruments doesn't launch Wow, that’s a lot of steps! If you want to run with Instruments, just press Cmd-I or choose Product>Profile.
But I’ve never tried using Instruments with zombies. Instead just bring up the current scheme’s editor, select the Diagnostics tab and check “Enable Zombie Objects”. Don’t leave this on all the time, though, because it drastically increases memory usage. (What you _should_ leave on all the time, though, is Enable Scribble, because it has low overhead and helps catch references to freed blocks.)
—Jens
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden