Android的内存分析内存、Android

2023-09-05 03:07:39 作者:Autism。孤独症

我要寻找内存泄漏在目前的应用程序,并有一个工作流的问题。这(http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html )的博客文章中指出:

I have to search for memory leaks in an Application at the moment and have a workflow problem. This ( http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html ) blog post states:

如果你正在运行ADT(包括DDMS的插件版本)和   有MAT安装在Eclipse为好,点击转储HPROF   按钮,将自动进行转换(使用HPROF-CONV)和   打开转换后的HPROF文件到Eclipse(这将被打开   MAT)。

If you're running ADT (which includes a plug-in version of DDMS) and have MAT installed in Eclipse as well, clicking the "dump HPROF" button will automatically do the conversion (using hprof-conv) and open the converted hprof file into Eclipse (which will be opened by MAT).

但文我preSS在Eclipse中的按钮,并尝试打开HPROF文件,我得到这个错误 - 所以我还是要进行转换:

But wen I press the button within eclipse and try to open the hprof file I get this error - so I still have to do the conversion:

错误打开堆转储com.baseapp.foo.hprof。检查错误日志   对于进一步的细节。错误打开堆转储   com.baseapp.foo.hprof。查看更多详细信息,错误日志。   未知HPROF版(JAVA PROFILE 1.0.3)(java.io.IOException异常)   未知HPROF版(JAVA PROFILE 1.0.3)

Error opening heap dump 'com.baseapp.foo.hprof'. Check the error log for further details. Error opening heap dump 'com.baseapp.foo.hprof'. Check the error log for further details. Unknown HPROF Version (JAVA PROFILE 1.0.3) (java.io.IOException) Unknown HPROF Version (JAVA PROFILE 1.0.3)

有谁知道我在做什么错在这里?我使用ADT 16

anyone knows what I am doing wrong here? I am using ADT 16

推荐答案

我有这个问题上我的设置也,似乎也有一定的一系列造成日食默认为保存到文件(而不是做的步骤转换和打开它)。

I had this issue on my setup also, it seems there is a certain series of steps that cause eclipse to default to saving to a file (instead of doing the conversion and opening it).

反正来修复它:

preferences(全球的Eclipse的) - > Android的 - > DDMS - > HPROF操作 - >设置为打开在Eclipse(我的是previously保存到磁盘)

Preferences (The global Eclipse ones) -> Android -> DDMS -> HPROF Action -> set to "Open in Eclipse" (Mine was previously on "Save to Disk")

 
精彩推荐
图片推荐