查找内存泄漏的仪器线路(Finding the line of memory leak in Ins

2019-08-16 18:16发布

I am new to Instruments in iOS. I am trying to find the memory leak in instruments and using Xcode 4.5.2 and following this tutorial: http://soulwithmobiletechnology.blogspot.sg/2011/04/how-to-check-memory-leaks-in-xcode-4.html.

I am able to find the memory leak and able to press the arrow to go to history of the memory leak item. But when i double-click any of them, it doesn't show the line it is causing the memory leak.

The image is like this:

What am i doing wrong? Need some guidance... Thanks..

Answer 1:

我遇到了麻烦,在第一次过找到它。 这是如何做:

  1. 选择泄漏仪(明显)。
  2. 通过单击从右侧切换它的工具栏中的图标显示“扩展详细信息”窗格。
  3. 从列表中选择您的泄露项。
  4. 双击该条目有你看到你的应用程序名称和/或您的类,它旁边有一个用户图标带你到有问题的代码之一。 (可以有一个以上的)

双击该(4),将带您直接到该文件,并在问题的代码行:



文章来源: Finding the line of memory leak in Instruments