3

How to find current memory usage of an application while using through adb command?

Can anyone post me the code that to find the current application memory usage

1
  • after all you want code or Adb Command? Commented Sep 29, 2016 at 11:11

1 Answer 1

10

with Android we did it using phones connected to same machine where tests are running.

in test code we just execute:

  • adb shell dumpsys cpuinfo
  • adb shell dumpsys meminfo 'your apps package name'

and in code just parse values needed. then we just printed them in test logs and just manually looked through them.

test itself was kind of walking among many screens and good long swipe with large lists.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.