您的位置:首页 > 移动开发 > Android开发

Android Studio MAT内存分析的一个小问题

2017-11-27 00:00 141 查看
这里有个初探:http://blog.csdn.net/mackkill/article/details/68944841。遇到的问题是无法解析hprof文件:“Unexpected error while processing hprof file: null”,这时需要先将hprof转成标志格式:

The
hprof
file you get from Android has android specific format. You should convert
hprof
file take from Android OS into standard
hprof
format. For this you can use
hprof-conv
tool that is located at
AndroidSDK/tools/hprof-conv
.

For example:

hprof-conv android.hprof mat.hprof

And then open mat.hprof in Memory Analyzer.

EDIT: hprof-conv might be located under
AndroidSDK/platform-tools/
in some bundles.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐