Android Performance Test adb command

Source: Internet
Author: User

-Get program startup information, get package name

ADB Logcat | grep START

-Cold start app (cold start refers to the first time the app starts in a mobile device)/hot start (the app presses the home key or the back button to back up the background)

ADB shell am start-w-n Browseractivity (Package name w must be capitalized)

-Cold boot Exit app

ADB shell am force-stop (package name)

-Hot start Exit app

ADB shell Input KeyEvent 3 (press the back key to exit the app)

-Get the monitoring value of the CPU

adb Shell Dumpsys Cpuinfo | grep (package name)

-Get the app's process ID

adb shell Ps|grep (package name)

-Get total traffic for the process

ADB shell cat/proc/1516 (process ID)/net/dev

-Get current charge

adb shell Dumpsys Battery

-Switch to non-charging status

ADB shell Dumpsys Battery Set Status 1

-Monitor Memory usage

Add Shell top-d 1 >meminfo

Cat Men Info |grep

Android Performance Test adb command

Related Article

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: 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.