0

I built a video player app for Android. Now I'd like to capture info about its runtime (heap) memory usage.

Are there tools that I can use to capture and inspect this information? I'm using Eclipse to develop my app; does it have any features or plugins that make this easy?

1
  • 1
    Clarified the question. Commented Mar 23, 2015 at 3:28

1 Answer 1

1

In Android Studio on the tool window Android, there is a button called Dump Java Heap

If you are still using Eclipse, you can open DDMS in the android sdk tools. You'll find a Dump HPROF file button. Then you use hprof-conv in sdk tools to convert the file format.

If you wanna dump heap in code, you can use this method Debug.dumpHprofData(String fileName).

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

1 Comment

thank you. But how can I this data via the app and send back to my server as Analytics data ?

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.