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