Android Performance Test Systrace

Source: Internet
Author: User

A: Introduction
Systrace is a set of tools introduced by Android4.1 for performance analysis.
Linux kernel-based ftrace mechanism (for tracking function calls to the Linux kernel),
You can output the current function call state of each thread.
It helps developers to collect key Android subsystems such as Surfaceflinger,
Windowmanagerservice and other Framework parts of the key modules, services)
Operational information to help developers analyze system bottlenecks more intuitively and improve performance


Two: Kernel configuration

Kernel hacking
---->tracers


Three: Init.rc configuration
Add Mount Debugfs none/sys/kernel/debug/


Four: Useenvironment: Android 4.3
ADB connection device (network/usb)

Cases:
CD External/chromium-trace//This is used in the Android source code in the Systrace, you can also use the SDK

Python systrace.py-b 32768-t gfx input view webview wm am \
Audio Video camera Hal Res Dalvik sched freq Idle

-B:
Specifies the buf length of the trace

-T:
Specify the time, in seconds, of the record

GFX input View WebView, etc.:
specifies that the content to be logged is consistent with the k_categories array inside the frameworks/native/cmds/atrace/atrace.cpp


V: Results
Result output to external/chromium-trace/trace.html
Open with Google Chrome


Attached: parameter description





Android Performance Test Systrace

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.