commit | 28aa4cba6f7e541a870ca6ac68843feeaff47d27 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Apr 06 20:41:39 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Apr 06 20:41:39 2022 +0000 |
tree | 523b08ce7b8e8ac9b3a789a00e830a2d792da4b5 | |
parent | 7cc5fe85e88a77c64dc9fb1a2d65e624c804e2db [diff] | |
parent | 9ff3c1fd3ea48b7c148fc1f6e2456dbc5596ca8d [diff] |
Snap for 8414339 from 9ff3c1fd3ea48b7c148fc1f6e2456dbc5596ca8d to tm-qpr1-release Change-Id: I76ab92672f86a1ed0937ff93260e32abee181b3e
Trebuchet is a Kotlin library for parsing and analyzing Android trace files generated by the atrace
or systrace
commands. This is not an officially supported Google product.
The code for the Trebuchet library can be found in the core/
directory.
Trebuchet comes bundled with several programs for analyzing one or more trace files.
The Startup Analyzer program takes a trace file, detects any startup events that occurred during the traced time period, and prints information about the events. If Trebuchet is built using the Android build system, there will be a StartupAnalyzerKt program placed into a directory that is a member of the PATH system variable. If you wish to use Gradle, you can use the startup-analyzer.sh
script located in the scripts/
directory.
The Startup Summarizer program takes a set of trace files, detects startup events in each file, and computes average and standard deviation for startup stats, broken down by program name, compiler filter, and cache status. If Trebuchet is built using the Android build system, there will be a StartupSummarizerKt program placed into a directory that is a member of the PATH system variable. If you wish to use Gradle, you can use the startup-summarizer.sh
script located in the scripts/
directory.
The scripts/
directory contains a shell script called run-startup.sh
, which will start a trace, launch an activity given a package name and an activity name, transfer the trace file to the host machine, and run the StartupAnalyzer.