Tool Memory Analyzer (MAT)

peacemaker

Expert
Licensed User
Longtime User
OK, i used myself:
1) Install MAT
2) Connect a device (emulator) and start your app
3) Start Monitor (DDMS) and select the device and running app (Android SDK set)
4) Use UPDATE HEAP panel button for the chosen app
5) Open HEAP tab in the Monitor
6) use app, opening activities, menus....as usual
7) for each activity use button CAUSE GC on the HEAP tab
8) save the memory dump into HPROF file in the Monitor
9) convert the saved dump into MAT format by hprof-conv.exe utility (Android SDK set)
10) Start MAT, open the converted "mat.hprof" file
11) Read MAT analize info to check the problem with memory usage
 
Top