Objective C: Detecting Leakages via Instruments in Xcode

假如想象 提交于 2019-12-08 03:08:08

问题


I ran the instruments on my app and found some leaks, however I am not sure how I can decipher the results for example I clicked on the line '_NSArrayM'

After which I clicked on one of the entries in the details column and the following was displayed,

What does '100%' mean?


回答1:


The 100% means all the leaks Instruments detected in that function were in the highlighted line of code. If your function was leaking memory in multiple places, the individual percentages would be lower, but they would add up to 100%.



来源:https://stackoverflow.com/questions/6561932/objective-c-detecting-leakages-via-instruments-in-xcode

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