How can I get the heap memory sizes of different processes running on emulator (or device) to my application (Activity) in Android?
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With