3

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

1

1 Answer 1

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' 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.