Right click on the project –> debug as-> android project
run through emulator
–> DDMS left upper corner
you can see graph per line in stats
Dump HPROF file
Download Mat – memory analyzer tool available here
Convert the hprof from android to regular java dump :
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
hprof-conv android.hprof mat.hprof
And then open mat.hprof in Memory Analyzer.
overview includes all kind of sets..