3

How can I get the heap memory sizes of different processes running on emulator (or device) to my application (Activity) in Android?

midhunhk
  • 5,402
  • 7
  • 49
  • 79
user369932
  • 241
  • 5
  • 17
  • 1
    This answer should do it in code. http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android – DeaMon1 Aug 08 '12 at 06:32

1 Answers1

8

Open a command prompt, type

adb shell dumpsys meminfo

or for jusr one process, either

adb shell dumpsys meminfo xxx

where xxx is the PID

or

adb shell dumpsys meminfo 'your apps package name'
NickT
  • 23,183
  • 11
  • 76
  • 115