Objective C: Detecting Leakages via Instruments in

2019-05-21 12:16发布

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'

enter image description here

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

enter image description here

What does '100%' mean?

1条回答
放我归山
2楼-- · 2019-05-21 12:40

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%.

查看更多
登录 后发表回答