Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the relative Special Test of app Electric quantity

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to achieve the relative special test of app electricity. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

The power consumption of mobile phone is mainly caused by some components of mobile phone, such as cpu, wifi, gps and so on. So the power consumption is mainly concentrated in app uploading and downloading data, checking location, waking up lock screen and so on.

Now let's take a look at how these consume power in a little more detail: 1.WIFI (Cellular Wireless): when wifi is turned on, in order to put the hardware into use, (1) there will be a wake-up peak, (2) the power consumed by sending packets, (3) then a lot of power is needed to receive packets, and (4) after the execution is completed, the hardware will remain on for a period of time. Prevent packets from being received for a short period of time. As shown in the following figure:

two。 Lock screen awakening: when you unlock and light up the screen, you will see a big increase in power consumption. Turn on the indicator light, GPU draws the entire screen, and CPU begins to work. As shown in the following figure:

Of course, this is different from the phone's own app wake-up, applications such as: AlarmManager, wake-up power consumption is only a small peak.

As for how to test the method of high power consumption of app caused by the above problems, the following measures are adopted:

1. Through the power calculation tools included in the mobile phone system, horizontally compare the power consumption with similar applications, and vertically compare the power consumption of all applications in the mobile phone (do not rank in the top few)

two。 Then use battery historian as a tool for detailed analysis.

Of course, for what kind of way to carry out the above test? At present, the following methods are adopted:

1. Lock screen and unlock, observe at multiple time points

two。 Observation at multiple time points in the foreground and backstage

Observation at multiple time points under 3.wifi, 4G, 3G and 2G

4. Set several time periods to continuously trigger the large power consumers in the app application

5. Let app be free to use through monkey

The above is the editor for you to share how to achieve the relative special test of app electricity, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 286

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report