admin管理员组文章数量:1608631
Im trying to check for memory leaks by using a HPROF File from eclipses DDMS view.
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)
So i followed a solution in another post on StackOverflow which told me to change the preferences
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?
EDIT
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.
解决方案
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.
版权声明:本文标题:java如何打开hprof,安卓:打开.hprof文件在Eclipse中 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1728550796a1163407.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论