Resource Test
Users connect to a mobile app using different types of client devices - e.g., smartphones, tablets, smartwatches, specialized handheld or vehicle-mounted terminals running mobile operating systems like Android or iOS, etc. Any time a device connects to an app, the target app leaves a resource footprint on the device. Besides consuming CPU, memory, and network bandwidth, an app also erodes the battery power of a device.
If a device consistently runs out of memory when accessing the target app, or if an app appears to drain a device's battery during each access, its a sign that resources are inefficiently utilized by the app on that device. Mobile app developers should be able to capture such anomalies early and optimize the app promptly, so as to avoid application crashes, increase battery life across user environments, and ensure app compatibility across device types. This is where the Resource test helps!
This test automatically discovers the type and operating system of the mobile devices from which users are connecting to the target mobile app. The test then reports how many devices of each type:OS combination:
-
Have batteries that are charging currently;
- Are connecting to the target app using Wi-fi;
-
Are connecting to the target app using Mobile data;
Most importantly, the test reports the average memory usage of the app when accessed from devices of each type:OS combination. Alerts are sent out if unusual memory consumption is noticed in a specific device type. In such a situation, mobile app developers can use the detailed diagnostics of this test to know on which exact device the app has been consistently over-utilizing memory and CPU resources. Detailed analytics also reveal the battery usage of the app on each device, thus pointing to the precise device on which the app has been power-heavy. This way, the test warns mobile app developers of inefficiencies in resource usage that may be rampant in the app, and the exact device on which such abnormalities were often observed. With the directions and inputs provided by this test, administrators can optimize the app, thus enhancing its usability and ensuring its longevity across all user environments.
Agent deploying the test : A remote agent
Outputs of the test : One set of results for every client device type running on each mobile platform from which users are connecting to the target mobile app.
| Parameter | Description |
|
Test period |
How often should the test be executed. |
|
Host |
The host for which the test is to be configured. |
|
Port |
The port number at which the specified host listens |
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
Charging Devices |
Indicates the number of devices of this type for which batteries are currently being charged. |
Number |
Use the detailed diagnosis of this measure to know which devices are getting their batteries charged, and the percentage charge left on each device. By quickly comparing the battery charge level across devices, you can accurately identify the device where the app is draining charge significantly. If an app is draining a device's battery, it is indicative of inefficiencies in hardware resource usage. If left unchecked, it can cause frequent application crashes. To prevent a mobile application from draining a device's battery, app developers must optimize background processing, reduce network polling frequency, manage location tracking efficiently, and pause active animations or timers when the app is minimized. |
|
Not Charging Devices |
Indicates the number of devices of this type for which batteries are currently not being charged. |
Number |
|
|
Connected using wi-fi |
Indicates the number of devices of type that are connecting to the target app via Wi-fi. |
Number |
|
|
Connected using mobile data/other network |
Indicates the number of devices of type that are connecting to the target app via mobile data or any other network. |
Number |
|
|
Average memory usage |
Indicates the amount of memory that the target app has been using, on an average, on devices of this type. |
MB |
A consistent and significant increase in the value of this measure is a cause for concern, as it could be potentially indicative of a memory leak in the app. This in turn can cause the app to throw Out-Of-Memory exceptions and even crash on occasion. If the value of this measure hints at memory leak, then you can use the detailed diagnosis of the Charging devices measure to identify the exact device(s) on which the app is hogging memory resources. App developers can then optimize heavy asset loading and fix hidden memory leaks in the app, so that the app utilizes memory minimally on the said devices. Some of the other core memory optimization strategies include:
|
The detailed diagnosis of the Charging Devices measure reports the ID of devices from which users are connecting to the app and the resource usage of the app on each device. A quick look at the detailed diagnostics will reveal the device that is using resources erratically.
Figure 1 : Detailed diagnosis of the Charging Devices measure