Big talk App Test 2.0 notes 2

Source: Internet
Author: User

    1. Power consumption test

      are divided into two types:

      1) A specific value for direct testing of power consumption over a period of time

      2) indirect testing and consumption-related data or scenarios, so that through testing and optimization, the same can be achieved to reduce the power consumption of the effect

    2. Use the Dumpsys command to view the application's wakelock mechanism and the running state of the services it owns.

      Adb-s <device number> Shell Dumpsys batteryinfo <package name>

      By filtering your application's corresponding package name, you can see some of the following data.

      NETWORK:200KB received, 300KB sent

      Wake lock xxx:40s (200times) Realtime

      Wake lock Xxx:29min (2 times) Realtime

      ...

      Proc XXX

      cpu:10s 850ms usr+2s 990ms KRN

      Service XXX:

      Created for:xxx Uptime

      starts:0, launches:0

      Service XXX:

      Created for:xxx Uptime

      Starts:11, launches:22

      ...

      See the information behind Wake Lock primarily.

      The power consumption information of each component in the phone can be found in the Power_profile.xml file.

    3. Use of Battery-historian Tools

      A very powerful open source tool that installs:

      Https://github.com/google/battery-historian


Big talk App Test 2.0 notes 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.