Android Performance Analysis Tools

Performance Analysis

gfxinfo

adb shell dumpsys gfxinfo com.android.systemui >FPS.txt

systrace

python ~/Android/Sdk/platform-tools/systrace/systrace.py -b 8000 -t 5 -o systrace.html

bootchart

## enable bootchart function
adb shell 'touch /data/bootchart/enabled'
adb shell 'echo 120 > /data/bootchart/start'
adb reboot

## package bootchart data
adb shell 
cd data/bootchart/
tar -zcf bootchart.tgz *

## install bootchart soft
sudo apt-get install bootchart
sudo apt-get install systemd-bootchart
sudo apt-get install pybootchartgui

## pull bootchart file
adb pull data/bootchart/bootchart.tgz
bootchart bootchart.tgz

你可能感兴趣的:(Android Performance Analysis Tools)