Convert hprof files in Android format to java format

If you run the debug mode app on your phone, you can view the real-time memory allocation in the Profiler view of Android Studio, or you can save it as a memory snapshot file with the extension .hprof at any time. The .hprof file is in Android format. If you want to view this file in Eclipse Memory Analyzer, you need to convert it to java format. The method is as follows:
1. Find the Android SDK installation directory, such as: D:\android-sdk-windows , There is a hprof-conv.exe file in the platform-tools directory. In the command line, cd to the following directory: D:\android-sdk-windows\platform-tools.
2. Assuming that the path of the .hprof file you need to convert is: E:\test\memory-1.hprof, enter the command in the command line: hprof-conv E:\test\memory-1.hprof E:\test\ memory-1-java.hprof. After the execution is successful, the converted file is located at: E:\test\memory-1-java.hprof.
 

Guess you like

Origin blog.csdn.net/chenzhengfeng/article/details/115064087