Xcode Instruments - Enable NSZombie Detection? Where is it?

时光毁灭记忆、已成空白 提交于 2019-11-28 12:39:14

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

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 ;-)

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!