android-studio - 错误: expecting HPROF file format 1. 0.3

标签 android-studio heap-memory hprof

我将堆转储导出为 HPROF,并根据 docs 使用 .hprof 后缀保存它。 。当我运行 hprof-conv 命令时,出现错误:

ERROR: expecting HPROF file format 1.0.3

结果我得到了大小为 0 的 converted-heap.hprof 文件。并且 Eclipse Memory Analyzer 无法打开它。

其他信息:

  • 有类似的问题here ,但转换错误仍然没有解决。

  • 如果重要的话,我会使用新的 Android Studio 3 及其 Android Profiler 来导出堆转储。

enter image description here

最佳答案

1.这个hprof.file必须点击Dump Java Heap save file。(检查是否保存了.hprof文件) 2.当您点击Allocation Traking时,保存hprof.file。将会抛出此错误。

关于android-studio - 错误: expecting HPROF file format 1. 0.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47187086/

相关文章:

android - 错误 : The apk for your currently selected variant (Unknown output) is not signed. 请为此变体指定签名配置(调试)

android-studio - Android Studio中有没有从当前文件跳转到父类的快捷方式?

java - 按钮> ListView >新 Activity ,有什么建议吗?

java - Android Studio : Passing RadioButtons using Intent ERROR NullPointerException

java - 单一方法的内存泄漏

c - 堆内存澄清

java - Jmeter SampleResult 内存泄漏

android - HPROF 后我的应用程序中有巨大的 byte[]

android - ListActivity性能问题

c++ - 堆大小(由 umdh 报告)和(私有(private))工作集(由任务管理器报告)之间的差异是什么?