无法将转储HPROF文件从Android Studio转换为MAT格式

Del*_*ian 3 android hprof

当我尝试将android studio终端中的HPROF文件转换为MAT格式时:

1)hprof-conv [-z] d:/dump.hprof d:/outfile.hprof

2)hprof-conv d:/dump.hprof d:/outfile.hprof

我有相同的答案:

用法:hprof-conf [-z] infile outfile

-z:排除非应用堆,例如Zygote

为任一文件或两个文件指定' - '以使用stdin/stdout.

版权所有(C)2009 Android开源项目

该软件是根据Apache许可证2.0版("许可证")许可的源代码构建的.您可以在以下位置获取许可证副本

http://www.apache.org/licenses/LICENSE-2.0
Run Code Online (Sandbox Code Playgroud)

有关更多详细信息,请参阅此软件的相关NOTICE文件.

但是android平台工具中没有hprof-conf命令.

我该怎么做才能转换文件?

Ric*_*ord 7

我有这个问题,它与我认为的权限有关.

可以通过将输入.hprof文件复制到"platform-tools /"目录并将输出文件指定为没有权限的某个地方来修复它.

例如.

hprof-conv in.hprof C:/Users/whatever_name/Desktop/out.hprof