tag | 5795fef42d840650f7aca69816ea72de43b60bac | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Dec 07 23:03:30 2020 -0800 |
object | 7604cba862bdaafc113d162e4a5093fce2d8cbd4 |
Android 11.0.0 release 25
commit | 7604cba862bdaafc113d162e4a5093fce2d8cbd4 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Jan 12 00:21:47 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Jan 12 00:21:47 2020 +0000 |
tree | 1e9fa396845b8b9203d2496f811b30c16a737657 | |
parent | cf2069c1efdc92628dc0351367bd01b395ff67e3 [diff] | |
parent | b735f448e61c99f4c06101902ff76eee4e5496f1 [diff] |
Snap for 6128581 from b735f448e61c99f4c06101902ff76eee4e5496f1 to rvc-release Change-Id: I750af62600d5b13f6f0e1bf2654ea545028a459c
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.