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

前端 未结 9 2503
清酒与你
清酒与你 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 06:45

    Hackbod's is one of the best answers on Stack Overflow. It throws light on a very obscure subject. It helped me a lot.

    Another really helpful resource is this must-see video: Google I/O 2011: Memory management for Android Apps


    UPDATE:

    Process Stats, a service to discover how your app manages memory explained at the blog post Process Stats: Understanding How Your App Uses RAM by Dianne Hackborn:

提交回复
热议问题