Xcode Instruments - Zombies - what am I looking for?

帅比萌擦擦* 提交于 2019-12-03 05:56:43

问题


When I run Project/Profile in Xcode and choose "Zombies", the app runs in the simulator with "NSZombie detection" enabled. But what should I be looking for to tell me that there is a problem? All I see is the Allocation instrument running and the statistics below. Where will it actually show me that a Zombie was detected?


回答1:


You will get the leak above the object allocation bar. Check this image;

For a reference, check this video



来源:https://stackoverflow.com/questions/12098444/xcode-instruments-zombies-what-am-i-looking-for

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