Pricing

Understanding CPU Usage and Normalized CPU Usage for Android and iOS Apps

GAIN INSIGHTS INTO CPU USAGE AND NORMALIZED CPU USAGE FOR ANDROID AND IOS APPS TO OPTIMIZE YOUR APP'S PERFORMANCE.

When optimizing your app's performance, it's crucial to understand the differences between traditional CPU usage and normalized CPU usage. 

1. Android

Traditional CPU Usage (Unnormalized)

This is calculated as CPU execution time divided by the total CPU time at the current CPU frequency. Both Android Studio and ADB usually report unnormalized CPU usage.

Normalized CPU Usage

Mobile devices frequently change CPU frequencies, making it challenging to compare CPU usage at different frequencies. For example, a 30% CPU usage at a low frequency and a 30% CPU usage at a high frequency have different performance implications. To address this issue, normalized CPU usage incorporates the frequency factor into the calculation.

     Normalized CPU Usage = (CPU execution time / Total CPU time) * (Sum of all CPU frequencies at the current moment / Sum of all the CPU's maximum frequencies).

PerfDog provides both statistics methods, with unnormalized CPU usage as the default. However, it's recommended to use normalized CPU usage as a performance indicator on Android. Note that a few mobile devices may not support normalized CPU usage testing temporarily; try restarting them if needed.

2. iOS

On the iOS platform, PerfDog reports traditional (unnormalized) CPU usage by default. Frequency changes on iOS devices typically occur only in extreme cases, such as very low battery or locked screens. As a result, normalization is less relevant for iOS apps.

Understanding the differences between traditional and normalized CPU usage is essential for optimizing your app's performance on Android and iOS platforms. 
 

PD网络测试推广
Latest Posts
1Enhancing Game Quality with Tencent's automated testing platform UDT, a case study of mobile RPG game project We are thrilled to present a real-world case study that illustrates how our UDT platform and private cloud for remote devices empowered an RPG action game with efficient and high-standard automated testing. This endeavor led to a substantial uplift in both testing quality and productivity.
2How can Mini Program Reinforcement in 5 levels improve the security of a Chinese bank mini program? Let's see how Level-5 expert mini-reinforcement service significantly improves the bank mini program's code security and protect sensitive personal information from attackers.
3How UDT Helps Tencent Achieve Remote Device Management and Automated Testing Efficiency Let's see how UDT helps multiple teams within Tencent achieve agile and efficient collaboration and realize efficient sharing of local devices.
4WeTest showed PC & Console Game QA services and PerfDog at Gamescom 2024 Exhibited at Gamescom 2024 with Industry-leading PC & Console Game QA Solution and PerfDog
5Purchase option change notification Effective from September 1, 2024, the following list represents purchase options will be removed.