您的位置:首页 > 移动开发

Profile your application in the simulator with 'Zombies' Instrument.

2012-10-09 11:12 507 查看
Profile your application in the simulator with 'Zombies' Instrument.

Run your app for a while and do whatever you have to do to make your app crash. When it does, you will get a pop up like the image below and it will halt the profiling of the app:



Then if you click on the little arrow next to the address (0x158b3c00) .. it will take you to the object retain/release history for the object that was over released (the zombie).

If you highlight the line above where the retain count went to -1, and open View -> Extended detail, it should point you to the stack trace and line in your code where the object was overreleased:



If you double click the class where it is occuring, it will open up your source and show you the bad line of code:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐