IPHONE:用仪器分析泄漏 [英] IPHONE: Analyzing leaks with instruments

查看:78
本文介绍了IPHONE:用仪器分析泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用仪器定位泄漏,但我看到的泄漏与下图中的泄漏类似:

I am trying to locate leaks using instruments, but the leaks I see there are like the ones in the next picture:


< a href =https://imgur.com/XPRYF =nofollow noreferrer>泄漏

As你可以看到没有关于哪一行代码正好泄漏的信息。我所有的泄漏,大约20,都是这样的,换句话说,泄漏并没有显示我的代码中的任何一行。

As you can see there's no information of which line of code is exactly leaking. All leaks I have, around 20, are like this, or in other words, the leaks don't show any line of my code in particular.

这个漏洞图片与CoreFoundation上的_CFAllocatorSystem(???)有关,我还有其他人只是说GSEvent。我不知道是什么产生了这些。

The leak in this picture is related to "_CFAllocatorSystem" (???) on the CoreFoundation and I have others that simply say GSEvent. I have no clue of what's generating these.

我怎样才能发现?

感谢您的帮助。

推荐答案

我想你想在泄漏运行后进入仪器并选择源视图。然后,您需要将源文件拖到仪器窗口中。然后它将显示代码中与调用堆栈一起发生泄漏的行。

I think you want to go into instruments after running under leak and select "Source View". Then you need to drag your source files into the instrument window. It will then show the lines in the code where the leak occurs along with the call stack.

有些抛弃我的代码泄漏了一个视图。在仪器中看起来像这样:
alt text http://img688.imageshack .us / img688 / 9669 / screenshot20091028at131.png

Some toss off code of mine leaks a view. It looks like this in Instruments: alt text http://img688.imageshack.us/img688/9669/screenshot20091028at131.png

这篇关于IPHONE:用仪器分析泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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