Performance Analysis-Introduction to Systrace Usage

Performance Analysis-Introduction to Systrace Usage

A detailed analysis of the systrace series of articles

Android Systrace series articles

Android hardware acceleration

Introduction

systrace tool location (Ubuntu android sdk directory as an example)
Android/Sdk/platform-tools/systrace

Grab command:
python systrace.py -a ** packageName ** -b 32768 -t 8 gfx input view dalvik disk am power res sched freq database binder_driver binder_lock -o 1.html
(python2 systrace.py… if you have python 2.6 2.7 3.6 and many other versions, systrace is currently only compatible with python2, not python3. Of course, if you use it wrong, you will be prompted that it cannot run;
python systrace.py -l can list all categories such as gfx input, etc.)
8 means admission 8 seconds.
Execute the above command, and then start to operate the interface.

Then open 1.html with Chrome browser to see the result. If the prompt fails, you can visit the webpage with chrome://tracing/, and then load file
operation:
W: zoom in
S: zoom out
A: move left
D: move right in the
circle and then press M: select a time period to facilitate multi-line comparison.

gfx input view dalvik disk am power res sched freq These categories can be added or reduced as appropriate

Guess you like

Origin blog.csdn.net/archie_7/article/details/108639338