This article is about using the processor, it will help you understand the process itself. On Windows systems, almost everyone is familiar with how the task manager works, how it shows how much RAM and/or CPU a particular application is using.
Similarly, Android has a built-in feature that shows how many resources an application binds.
So let's take a look at it
First and foremost, to access this feature you need to enable Developer Options
To do this:
1. Go to the Settings menu 2. Go to the About Phone submenu 3. Tap the MIUI version number 6 times in a row
You have now successfully enabled Developer Options
Now let's look at the process statistics:
1.Go to the Settings menu 2. Go to System settings / Additional Settings
3. Select Developer Options / Developer Options
4. And now the Process stats
When you enter the Process Statistics, you will see the following
Now, why is all this necessary? Some key situations when you may need it.
1. In Windows, you open the task manager when you want to run a running application, but you can also view CPU and RAM usage.
The situation is similar for an Android phone, because resources like RAM and CPU usage are limited, we need to be able to see how much RAM each application is using.
2. You often hear complaints that the phone is getting too hot, right? This way, we can find out what application is running the processor, i.e. what it is doing, what is making it hot.
3. Just like in Windows Task Manager, you have the option to shoot applications. These were the most common situations where process statistics might be needed. Now let's look at the processes If you tap the More button, the following menu will pop up
Let's look at each option briefly:
1. Duration / Duration
If you tap the duration tab, the pop-up menu above appears. This is basically for setting the duration over which the data is counted and displayed. This helps you to better understand how applications work, except for those that run permanently on your phone.
2. Show System Processes / Show System
This option also displays the Android system usage statistics as you can see ANT HAL service (system) is shown in the picture above, while in the picture below it is not
3. Use USS / Use USS
The use of USS affects the way statistics are calculated This is an option for developers, not necessary for the average user. The Duration menu gives you an option to select the duration of the statistics calculation.
4. Statistics Type / Stats Type
Selecting it will bring you to the following screen
Background running, foreground running and cached processes.
The background processes option shows only those applications that are already using the CPU even if they are not open, i.e. running in the background.
Foreground processes are applications that have been opened and used in the last 3 or 6 hours (depending on the duration setting).
The cached processes option allows you to view the applications that are cached to allow for quick startup and opens the page/place you arrive at when you browse the application.
And now the details. As you can see, there is a bar containing 3 colours:
Red, yellow and green
By default, the Duration is set and the colours indicate the RAM status
Red = critical Yellow = low Green = all OK
The size of the colour bar shows the % distribution of the time the phone's memory was in this state
If you tap on an application you will get the following screen
The screenshot above shows 3 different applications Here you can see the Average RAM usage, the Maximum RAM usage and the Runtime in %. It also shows the services that were used during the run.
In the picture you can see that the duration was on Google Keyboard 100%, i.e. 3 hours (because for me it is 3 hours) and the average RAM usage was 16 MB in 3 hours out of 1GB in the device (Redmi 1s).
Comparing the 3 applications, we can see that of the 3 applications, the System launcher used the most RAM. Similarly, you can find the RAM usage of each application, whose Auto Launch can be enabled or disabled individually in the Launcher ( Security > Permissions > Launcher) for better RAM management.
As we all know, systems are primarily built to protect themselves, so the cleaner shows that 200+ Mb of free memory is available. But it doesn't show that the system is constantly squeezing a certain amount of RAM for itself in case of need, and that it may LAG (hang) even though we have 200-250 MB of free RAM.
I hope this post helps you understand how to keep track of how much memory each application consumes.