Summary of performance test methods

Source: Internet
Author: User

1. View traffic usage for an app

ADB Shell Cat/proc/net/xt_qtaguid/stats | Findstr (uid#)

such as: adb shell Cat/proc/net/xt_qtaguid/stats | Findstr 10063 (10063 for UID)

 -Wlan00x0 10063 0 454072 1151 93233 1713 454072 1151 0 0 0 0 93233 1713 0 0 0 0 -Wlan00x0 10063 1 8672660 6156 396296 5302 8672660 6156 0 0 0 0 396296 5302 0 0 0 0

where 6th and 8 are listed as Rx_bytes (receive data) and tx_bytes (transmit data) contain statistics on all network traffic such as TCP,UDP.

Note: See how to Apply UID

ADB shell Dumpsys Package Com.example.myapp | Findstr userid=

2. Send command to simulate the low-power environment of mobile phone:

"  Level " 3 "  Scale "  -

remark: extension ~ How to restore factory settings

ADB shell am broadcast-a Android.intent.action.MASTER_CLEAR

Call : adb shell am start-a android.intent.action.call-d tel:10086

Summary of performance test methods

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.