Mobile App CPU Usage Test
Excessive CPU usage of an app not just impacts the app's performance, but also the health of the mobile device on which the app operates. Abnormal CPU usage can cause UI freezes and dropped frames, frustrating users in the process. Similarly, high CPU usage can generate excessive heat, causing thermal throttling on the device, resulting in hardware discomfort for the user. Moreover, erratic CPU usage forces the processor to draw maximum power, which rapidly drains the device battery. If an app is discovered to be 'power-hungry', it will instantly lose user votes, compelling users to uninstall the app.
So, to ensure peak app performance and improve app retention, it is important that app developers continuously monitor the CPU usage of the app on the device. This is exactly what the Mobile App CPU Usage test does!
For each device on which the target app runs, this test monitors the CPU usage of the app on that device and reports the CPU consumption of the app as a whole and of the individual execution paths (threads) inside the app. This way, the test point administrators to those devices on which the app is over-utilizing CPU resources. In the event of a CPU contention on that device, these metrics help administrators figure out if the app as a whole is overloading the device or only individual execution paths in the app. Alerts are sent out if app-level or thread-level CPU usage is abnormal, so app developers can rapidly initiate corrective measures and optimize CPU usage before it affects battery life, app uptime, and user experience.
Agent deploying the test : A remote agent
Outputs of the test : One set of results for every device on which the target app runs
| Parameter | Description |
|
Test period |
How often should the test be executed. |
|
Proxy Host |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the IP address/fully-qualified host name of the proxy server here. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Port |
If the eG agent communicates with the Mobile RUM collector via a proxy, then specify the port at which the proxy server listens for requests from the eG agent. By default, this is set to none, indicating that the eG agent does not communicate with the collector via a proxy. |
|
Proxy Username and Proxy Password |
If the eG agent communicates with the Mobile RUM collector via a proxy server, and if proxy server requires authentication, then specify valid credentials for authentication against Proxy Username and Proxy Password. If no proxy server is used or if the proxy server used does not require authentication, then set the ProxyUsername and ProxyPassword to none. |
|
Confirm Password |
Confirm the Proxy Password by retyping it here. Note: If you Reconfigure the test later to change the values of the Proxy Username, Proxy Password, Confirm Password parameters, then such changes will be effected only if the eG remote agent monitoring the Mobile RUM component is restarted. |
|
Mobile Mask Public IP |
This parameter applies only to the Mobile App Network test and the Mobile App Network Traffic test. Many high-security environments consider public IP addresses as 'classified information', as in the wrong hands, such information can cause serious damage to data security and integrity. This is why, by default, eG Enterprise hides/masks the last octet of public IP addresses displayed in detailed diagnosis (of the above-mentioned tests) using the 'x' character (by default). Accordingly, the Mobile Mask Public IP flag of this test is set to Yes by default. If you want, you can 'unmask' the last octet of public IP addresses, so the entire IP address is visible in clear text in the detailed diagnostics. For this, set the Mobile Mask Public IP flag of this test to No. |
|
Mobile Mask Private IP |
This parameter applies only to the Mobile App Network test and the Mobile App Network Traffic test. Many high-security environments consider private IP addresses as 'classified information', as in the wrong hands, such information can cause serious damage to data security and integrity. This is why, by default, eG Enterprise hides/masks the last octet of private IP addresses displayed in detailed diagnosis (of the above-mentioned tests) using the 'x' character (by default). Accordingly, the Mobile Mask Private IP flag of this test is set to Yes by default. If you want, you can 'unmask' the last octet of private IP addresses, so the entire private IP address is visible in clear text in the detailed diagnostics. For this, set the Mobile Mask Private IP flag of this test to No. |
|
Mobile Mask Router IP |
This parameter applies only to the Mobile App Network test and the Mobile App Network Traffic test. Router IP is the specific private IP assigned to the local router. Many high-security environments consider router IP addresses as 'classified information', as in the wrong hands, such information can cause serious damage to data security and integrity. This is why, by default, eG Enterprise hides/masks the last octet of router IP addresses displayed in detailed diagnosis (of the above-mentioned tests) using the 'x' character (by default). Accordingly, the Mobile Mask Router IP flag of this test is set to Yes by default. If you want, you can 'unmask' the last octet of router IP addresses, so the entire router IP address is visible in clear text in the detailed diagnostics. For this, set the Mobile Mask Router IP flag of this test to No. |
|
Mobile Mask URL Params |
This parameter applies only to the Mobile HTTP Requests test. Sometimes, sensitive information - e.g., passwords - may be transmitted in 'clear text' as values of certain URL parameters. To make sure that miscreants have no access to such confidential information, eG Enterprise, by default, uses the * (asterisk) character to hide/mask all parameter values in the URLs displayed in detailed diagnosis of the Mobile HTTP Requests test. This is why, the Mobile Mask URL Params flag is set to Yes by default. If you want, you can unmask all URL parameter values in the detailed diagnosis of this test by setting this flag to No. |
|
Mobile IPMaskChar |
This parameter applies only to the Mobile App Network test and the Moblle App Network Traffic test, and becomes relevant only if the Mobile Mask Public IP, Mobile Mask Private IP, and/or Mobile Mask Router IP flags are set to Yes. By default, this parameter is set to 'x'. This means that, by default, the last octet of private, public, and router IP addresses in detailed diagnosis is masked using the 'x' character. You can override this default value by specifying any other character that you may want to use as a masking character of IP addresses - e.g., *, ? etc. |
|
Max App CPU Usage |
By default, this parameter is set to 10. This implies that, by default, the test will report metrics for only the top-10 devices, in terms of the CPU usage. This enables app developers / administrators to focus on problem devices alone, without being distracted by those devices where the app's CPU usage is minimal. To identify the problem devices, the test sorts the metrics it collects from each device in the descending order of the App-level cpu usage measure, picks the first 10 devices in the sorted list, and reports metrics for only those devices. In other words, these devices alone will be the descriptors of this test. You can increase or decrease this device count, based on your need and the volume of data the eG database can handle. |
|
DD Frequency |
Refers to the freqthe uency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
App-level cpu usage |
Indicates the percentage of CPU resources utilized by the target app as a whole on this device. |
Percent |
App-level CPU usage measures the total computing power consumed by your entire application. It is the combined CPU resources used by all processes and execution paths belonging to your application. You can compare the value of this measure across devices to know the device on which the app is over-utilizing CPU resources. Ideally, the value of this measure should be low. A value over 80% is a cause for concern, as it implies that the app as a whole is hogging the CPU resources of the device. Excessive CPU usage by the entire app can overload the device and cause the battery to rapidly drain. |
|
App thread-level cpu usage |
Indicates the percentage of CPU resources that the target app's individual execution paths are using on this device. |
Percent |
This is the specific CPU time consumed by an individual thread (a single sequence of programmed instructions) inside your app process. If the value of the App-level cpu usage measure is unusually high for any device, then you can check the value of this measure on that device to see if CPU consumption at the thread-level is is the cause of the CPU spike at the app-level. If so, you may want to investigate further to find the specific tasks/threads that are being blocked/slowed, causing CPU usage to soar. For instance, a heavy background task can cause the main UI thread to lag. Removing the blocks can optimize CPU usage. |
The detailed diagnosis of the Number of ANR's measure displays the complete description of the ANR.
Figure 1 : The detailed diagnosis of the Number of ANR's measure