commit | bf6734f0712deba2b08f8577a72e756e79723711 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sat Mar 16 23:04:42 2019 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sat Mar 16 23:04:42 2019 +0000 |
tree | 05675bf3facce3b0ae9ecde7f0640db799c1e198 | |
parent | 90190be46b9507540f5dc914b839fa30ebd488f7 [diff] | |
parent | 5c74aa19df59af3292dadc6db03ffbf5235b3a9d [diff] |
Snap for 5381581 from 5c74aa19df59af3292dadc6db03ffbf5235b3a9d to qt-release Change-Id: I95b131a76479195a1a2fd93bceed64a73dfddad4
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.