commit | 642e6c18ca87c2360e8aad33e48184ca1686962a | [log] [tgz] |
---|---|---|
author | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | Sun Sep 29 13:27:34 2019 +0000 |
committer | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | Sun Sep 29 13:27:34 2019 +0000 |
tree | d7b54681047cfc1e4336297e3a0c2d1b3f81f242 | |
parent | 991935799370db586a34e3be2b81f470dce9e4f1 [diff] | |
parent | f5d697cff7f6582d43caf493fb4f02c8f7c88415 [diff] |
Snap for 5907899 from f5d697cff7f6582d43caf493fb4f02c8f7c88415 to r-keystone-qcom-release Change-Id: Ic67e2eece29e752ccded79402889d838d8a4c108
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.