Connect Night God simulator for Android 4.4.2
Open Simulator-connect the test device as follows in the CMD input
ADB Connect 127.0.0.1:62001
You can also connect your own mobile device.
Developer Options-Start USB debugging, you can use ADB,ADB need environment construction, Baidu Tutorial Bar
Mobile phone performance Test///////////////////////////////////////////
1. Start- up time:
View System app pkg name and activity name
adb Shell "Logcat | grep START "
Start app launch app,w to capitalize, use the following app to do the demonstration:
ADB shell am start-w-N package/activity
ADB shell am start-w-n Com.tencent.mm/.app. Wechatsplashactivity
Stop app stops app
ADB Shell AM force-stop Package
ADB shell am force-stop com.tencent.mm
Click Back key to exit into the background-cold exit
ADB shell Input KeyEvent 3
2. CPU
Check CPU Usage
adb shell "Dumpsys cpuinfo | grep com.tencent.mm "
3. Flow monitoring
Get process ID directive
ADB Shell PS | grep PackageName
adb Shell "PS | grep com.tencent.mm "
This process ID is: 984
4. get process ID traffic
Check Receive + Send traffic
(receive= receive, transmit= send; Eth0+eth1 table's respective network card, which means there are 2 network cards)
ADB Shell Cat/proc/pid/net/dev
ADB Shell Cat/proc/984/net/dev
5. Battery Monitoring
You can see the battery information status level is the current charge, scale indicates that the full amount of the battery is 100
adb shell Dumpsys Battery
Switch non-charging status (charging status is 2, which means non-2 is not charging)
ADB shell Dumpsys Battery Set Status 1
6. Memory Test
Get memory information for apps on your phone
ADB Shell Top
Main check list these 2 items: Vss+rss
VSS (Virtual Set Size): Virtualized memory consumption
RSS (Resident Set Size): Actual use of physical memory
get all the apps memory usage is then saved one time per second
-D indicates the refresh frequency, 1 means that 1 seconds to save a list of information, please go to the current CMD directory to view the file Meminfo
adb shell top-d 1 > Meminfo
7.fps& over rendering
Fps=frames per second= frames/second
Transition rendering: Describes how many times a pixel on the screen is depicted in the same frame of time
Developer Options-GPU Rendering mode analysis-Display as a bar chart on the screen
The Green line below the screen indicates a baseline-more than green indicates a problem with fluency, and below the Green line is more normal;
Tick GPU over draw Yes
App borders and UI can visibly see color changes-
Darker colors-the more page layers of the current feature
function is not in the current page, is on the other page, such as sliding after the display, the color depth indicates that the interface is over-drawn;
////////////////////////////////////////////////////////////////////////////////////////////////////
ADB Shell's mobile performance test