commit | 58f24695252bccc084373670e4cb8a8712e3ac9c | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Feb 03 23:46:10 2021 -0800 |
committer | Bob Badour <bbadour@google.com> | Fri Feb 05 01:28:33 2021 -0800 |
tree | 751676c909a7320632c1b15201b8134bbfe57182 | |
parent | b735f448e61c99f4c06101902ff76eee4e5496f1 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to tools/trebuchet Added SPDX-license-identifier-Apache-2.0 to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I13ca86ead92f6cc5623cbe1db633cb94476d45ab
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.