Duck
Duck

Reputation: 36013

Xcode Instruments - Enable NSZombie Detection? Where is it?

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

Upvotes: 4

Views: 10525

Answers (3)

ericg
ericg

Reputation: 8742

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.

Upvotes: 6

Aditya Kumar Pandey
Aditya Kumar Pandey

Reputation: 991

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

Upvotes: 13

Mark Johnson
Mark Johnson

Reputation: 1115

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

Upvotes: 8

Related Questions