Common metrics for Android performance testing

Source: Internet
Author: User

1. Memory

In Android, each app process, in addition to sharing dirty with other processes, uses private memory (private dirty), usually using PSS (= private memory + proportional allocation of shared memory) to measure the memory overhead of an app

Test method: adb shell dumpsys meminfo app package name

Note: adb shell dumpsys meminfo lists the amount of memory that is consumed by all applications

2. CPU

3. Flow rate

Usage of traffic in adb shell cat/proc/net/xt_qtaguid/stats

Usage:

First the need to get the UID of the application

ADB shell Dumpsys package Com.android.mms |findstr userid=

And then...

ADB Shell Cat/proc/net/xt_qtaguid/stats | Findstr userId

Wlan0 0x0 10127 0 316574 2279 472562 3651 316574 2279 0 0 0 0 472562 3651 0 0 0 0
Wlan0 0x0 10127 1 6172960 4936 415951 5215 6172960 4936 0 0 0 0 415951 5215 0 0 0 0
Wlan0 0x3792d5b400000000 10127 0 29678 208 32168 296 29678 208 0 0 0 0 32168 296 0 0 0 0
Wuyi wlan0 0x3792d5b400000000 10127 1 226170 222 25745 265 226170 222 0 0 0 0 25745 265 0 0 0 0
Wlan0 0xfa1dcc4b00000000 10127 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Wlan0 0xfa1dcc4b00000000 10127 1 3014885 2127 139857 2117 3014885 2127 0 0 0 0 139857 2117 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.

Remarks: Script page http://www.cnblogs.com/penghong2014/p/4530875.html

4. Power

Many features of Android are compared to power consumption (such as screen, Gps,sensor sensor, wake-up mechanism, CPU, Internet usage, etc.)

1) Anti-screen standby the most power-saving

2) WiFi than cellular data, including 2G (GPRS), 3G more power-saving

When the user presses the power key to make the phone go into a dead-screen hibernation state, the Android system actually does some of the work mentioned earlier: Turn off the screen, touch screen, sensor, dump current user state and Kernel state program run context to memory or hard disk, power off CPU

You should reduce the application's wake on the CPU to save power

5. Starting speed

6, sliding speed, interface switching speed

Animation frame rate

The number of frames (FPS) that the picture processor refreshes per second, which can be used to indicate whether the page is rendered smoothly. High frame rate can be more smooth, more realistic animation, but the frame rate of more than 60fps, the human eye subjective feeling of the difference is not much. Therefore, the 60fps as a measure of the requirement that each frame refresh time is less than 16ms, so as to ensure smooth smoothness in the slide.

7. Network speed interacting with the server

Common metrics for Android performance testing

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