How can I get the heap memory sizes of different processes running on emulator (or device) to my application (Activity
) in Android?
Asked
Active
Viewed 3,437 times
3

midhunhk
- 5,560
- 7
- 52
- 83

user369932
- 271
- 5
- 19
-
1This 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 Answers
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,844
- 11
- 78
- 121