How do I discover memory usage of my application in Android?

前端 未结 9 2322
清酒与你
清酒与你 2020-11-21 06:27

How can I find the memory used on my Android application, programmatically?

I hope there is a way to do it. Plus, how do I get the free memory of the phone too?

9条回答
  •  长发绾君心
    2020-11-21 07:00

    In android studio 3.0 they have introduced android-profiler to help you to understand how your app uses CPU, memory, network, and battery resources.

    https://developer.android.com/studio/profile/android-profiler

提交回复
热议问题