如何检测内存泄漏 [英] How to detect memory leak
问题描述
我在面对Android的相关MemoryOutOfBounds异常的一些问题。我发现有这背后有两个原因
I faced some issues related to MemoryOutOfBounds exception in android. I found There are two reasons behind this
(1)创建的活着,没有被破坏的任何地方主题
(1) Thread created are alive and not destroyed anywhere
(2)内存泄漏。
我们可以检测到日食线程的信息。但如何知道当我执行我的应用程序出现在其中,我的code内存泄漏线。 MAT的工作方式不同。 MAT是静态的。 是否有任何插件或任何办法知道内存泄漏的日食?
We can detect thread information in eclipse. But how to know at which line of my code memory leak occurs when I execute my application. MAT works differently. MAT is static. Is there any plug-ins or any way to know memory-leak in eclipse?
谢谢 迪帕克
推荐答案
这可能是有用的。
<一个href="http://stackoverflow.com/questions/1147172/what-android-tools-and-methods-work-best-to-find-memory-resource-leaks">What Android的工具和方法的工作最好找内存/资源泄露?
这篇关于如何检测内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!