Uses-Permission Uses-Permission: Android:name
Uses-Permission Uses-Permission: Android:name
org/mat/ (download
as RCP instead of plugin)
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"><
/uses-permission>
#> ps
The result will be something like this. Just note the process id associated
with com.moofwd.rca.main process.
#> cd /data/misc
#> ls –l heap*
The result will be something like this. Copy the name of the heap dump
file that you’re interested in.
For the next step, it’s better if you can have <Android Install Dir>/tools on
your system PATH.
On another command prompt window (NOT in the ADB SHELL) go to the
desired directory where you want to store the heap dump. It might be a good
idea to create a new sub-directory for each dump file because MAT will generate
a lot of files for each dump file during profiling.
Pull the HRPOF file from adb into your desired directory
Convert the HPROF file to relevant format readable by memory analyzer tools.
Note: Both adb and hprof-conv commands are provided as android tools
and will need for android tools to be on the PATH OR you’ll need to call
them with their fully qualified path.
Start MAT as standalone RCP application. Go to File=>open and choose the file
created in the hprof-conv step above.