目标C:通过Xcode中的仪器检测泄漏 [英] Objective C: Detecting Leakages via Instruments in Xcode

查看:75
本文介绍了目标C:通过Xcode中的仪器检测泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序上运行了仪器,发现了一些泄漏,但是我不确定如何解密结果,例如,我单击了"_NSArrayM"行

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,

"100%"是什么意思?

What does '100%' mean?

推荐答案

100%表示该功能中检测到的所有仪器泄漏都在突出显示的代码行中.如果您的函数在多个位置泄漏了内存,则各个百分比将较低,但它们总计将达到100%.

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

这篇关于目标C:通过Xcode中的仪器检测泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆