我将堆转储导出为 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 来导出堆转储。
最佳答案
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/