user369932
user369932

Reputation: 269

how to get the heap size value?

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

Upvotes: 3

Views: 3665

Answers (1)

NickT
NickT

Reputation: 23873

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'

Upvotes: 8

Related Questions