你如何检测iPhone上的内存泄漏? [英] How do you detect memory leaks on iPhone?

查看:139
本文介绍了你如何检测iPhone上的内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Xcode使用Leaks Instruments功能来(尝试和)查找内存泄漏。我还没弄清楚如何使用这个程序。我在程序中单击Leaks,看到内存增加,因为我在模拟器中做了各种各样的事情。我显示了扩展详细信息窗格。 扩展详细信息窗格中引用我的应用程序的唯一内容是main。与Xcode生成的主要方法一样。其他一切都是UIKit,Foundations和其他我没写过的SDK类。我的错误是我的应用程序没有显示任何内容?

I'm using the Leaks Instruments feature through Xcode to (try and) find memory leaks. I still haven't figured out how to use this program. I click Leaks in the program and see memory increasing as I do various things in the simulator. I have Extended Detail pane displayed. The only thing in Extended Detail pane that references my app is main. As in the main method produced by Xcode. Everything else is UIKit, Foundations, and other SDK classes I didn't write. What am I doing wrong that nothing is showing up from my app?

在我达到3分钟之前,有超过100个泄漏,总计2.5k。这是常见的吗?

Before I hit 3 minutes, there are over 100 leaks totaling 2.5k. Is this common?

推荐答案

我写了一篇关于使用Instruments跟踪iPhone内存泄漏的教程。我不确定它是否会帮助你处理你正在处理的事情......但是不会受到伤害。 : - )

I've written up a Tutorial on using Instruments to track iPhone memory leaks. I'm not sure if it will help you with what you're dealing with or not...couldn't hurt, though. :-)

http://www.streamingcolour.com/blog/tutorials/tracking-iphone-memory-leaks/

这篇关于你如何检测iPhone上的内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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