Xcode Instruments - Enable NSZombie Detection? Where is it?

前端 未结 3 1615
半阙折子戏
半阙折子戏 2020-12-11 07:59

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 instrumen

3条回答
  •  暖寄归人
    2020-12-11 08:33

    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.

提交回复
热议问题