tag | 32e9c65a47b2cebb6913ac13d6636fe4df073901 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Jun 08 14:45:14 2020 -0700 |
object | 4c12b4c4c44b4fd8f68f6239583cff175c82c3dd |
Platform Tools Release 30.0.2 (6538114)
commit | 4c12b4c4c44b4fd8f68f6239583cff175c82c3dd | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 12 22:01:29 2020 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 12 22:01:29 2020 +0000 |
tree | 1e9fa396845b8b9203d2496f811b30c16a737657 | |
parent | b955137df81de515532fbd8a57f59c8bb4e29ee9 [diff] | |
parent | d2240446bb55e53591d85fe1b9a795aca10a92be [diff] |
Snap for 6290619 from d2240446bb55e53591d85fe1b9a795aca10a92be to sdk-release Change-Id: Id067d458f25cfe25fbdd19e38ea8e51e07641fd2
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.