I want to collect some statistics from my Android phone.
When I launch my application, I want to know the following:
- How much RAM the application uses.
- How much free memory is on my phone.
- How much RAM do I have on my phone?
What should I do to collect this statistics, maybe write some code or maybe you use some applications that provide such information or, possibly, something else. I use MAT, but it doesn’t help me, maybe I missed something.
The main reason I want to collect such statistics is that it can be applied, start killing other applications to free up more space, and if I can collect such information, I will understand everything.
Edited
For example, my application use library ( helper.jar ), which is 85 MB in size, I know that if the application uses .jar, it loads into the phone RAM, now, as I can see, my RAM is growing from 2 to 2 + 85 (size .jar).
If I type adb shell cat / proc / meminfo this command from ADB, I will see some memory information.
How can I do the same from JAVA code?
Best regards, ViTo Brothers.