I want to gather some statistics from my Android phone.
When I start my application I want to know following:
- How much RAM does application use.
- How much free RAM does my phone have.
- How much total RAM my phone have.
What I must do to gather that statistics, maybe write some code, or maybe you use some applications which give such information or maybe something else. I use MAT but it is not helpful for me maybe I miss something.
The main reason why I want to gather such statistics is that may application start to kill other applications in order to free more space and if I can gather such information I will understand everything.
Edited
For Example my application use library (helper.jar) which size is 85 MB, I know that if application use .jar it loads to the RAM of the phone, now how I can see that my RAM grows from 2 to 2 + 85 (size of .jar).
If I type adb shell cat /proc/meminfo this command from ADB I will see some information about memory.
How I can do same from JAVA code ?
Best Regards, ViTo Brothers.