安卓:打开.hprof文件在Eclipse中 [英] Android: Opening .hprof file In Eclipse

查看:1294
本文介绍了安卓:打开.hprof文件在Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着使用HPROF文件从日食DDMS视图,检查内存泄漏。

Im trying to check for memory leaks by using a HPROF File from eclipses DDMS view.

我试着用MAT来读取保存在磁盘上的.hprof却得到了错误:

I tried using MAT to read a .hprof saved to disk but got error:

Error opening heap dump 'com.myapp.myapp.hprof'. Check the error log for further details.
Error opening heap dump 'com.myapp.myapp.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)

所以我也跟着在计算器上的另一篇文章一个解决方案,让我改变preferences

So i followed a solution in another post on StackOverflow which told me to change the preferences

安卓> DDMS> HPROF动作:查看在Eclipse

Android > DDMS > HPROF Action : View In Eclipse

但是,这只是显示该文件为不可读的文本文件:

But that just displays the file as an unreadable text file:

林假设它应该是更容易理解比等什么我做错了?

Im assuming its supposed to be easier to understand than that so what am I doing wrong?

修改

我在读有关使用一种叫做hprov-conv.exe其他职位我试图打开时,闪过一个画面,然后(开放作为管理员,当偶数)关闭,所以我不知道如何使用它。

I read in other posts about using something called hprov-conv.exe i tried to open that, it flashed a screen then closed (even when opening as an administrator) so i dont know how to use that.

推荐答案

打开在Eclipse选项,如果你使用的是MAT Eclipse插件才能工作。该 MAT下载页面显示更新网站链接,您可以通过添加帮助到Eclipse>安装新软件>添加。

The "Open in Eclipse" option will only work if you are using the MAT Eclipse plugin. The MAT Downloads page shows the "Update Site" link, which you can add to Eclipse via Help > Install New Software > Add.

这篇关于安卓:打开.hprof文件在Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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