Android App Performance test

Source: Internet
Author: User

1. Performance test

Startup time, primarily testing the app's time-consuming situation during startup

CPU, main test app in use process CPU ratio

Flow, the main test app in the use of the flow of the consumption of the situation

Power, the main test of the app during use of the consumption of electricity

Memory, the main test app in the use process of memory consumption, to verify the use of non-memory leaks in the case

FPS (frames per second), measuring fluency, and by observing, you can find the situation of smoothness anomaly.

Over-rendering, one aspect that affects fluency is over-rendering, and through over-rendering tests, you can find some unusual situations.

2. Preparation of performance test environment

Android SDK

Python 2.7

Pycharm

3.

Start time

(1) cold start: The first time the program starts, that is, the process of creating and loading resources for the first time

Launch app

ADB shell am start-w-N package/activity

After the app is started, you can get the output of this line of command when it is completed, which can be used as a reference value for the start time

adb logcat | grep START # get Package/activity's name

Stop app Commands

ADB Shell AM force-stop Package

(2) Hot start: After the application starts, point back key or home key, the application back to the background, not completely killed the state, and then start again, the occupation process

Android App Performance test

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.