Xcode Instruments - Enable NSZombie Detection? Where is it?

10,384

Solution 1

In XCode 4.0, this 'Enable Zombie' option is only present in iPhone simulator and not when you profile on actual device.

Solution 2

The zombie option is available in Xcode 3.2.6 under the allocations tool if you run in the simulator. For debugging memory crashes due to too many dealloc, the simulator will work just as well as the device nearly every time. BTW I am 'The guy' in the question ;-)

enter image description here

Solution 3

You can find it in Instruments in the Allocations Instrument. The easiest thing to do is to select:

Run -> Run with Performance Tool -> Allocations

This will start the application and Instruments will start recording. However, the Zombie detection may be off. To turn it on, stop the recording, click on the 'i' icon, and check 'Enable NSZombie detection'. Once it is enabled, start the recording again.

It should be noted that in XCode 4.0, one can only enable zombie detect in the simulator, not when running on a device.

Share:
10,384
Duck
Author by

Duck

Updated on June 09, 2022

Comments

  • Duck
    Duck about 2 years

    I have watched this video http://www.markj.net/iphone-memory-debug-nszombie/

    The guy shows an option called Enable NSZombie Detection on Allocations inside instruments, but my Instruments doesn't shows this option. This guy's video was done using a one year old version of Instruments and I am using Xcode 3.2.5. Do you guys know where this option is now? How can I enable it for iPhone apps?

    thanks