commit | 6610bd5bf7a4ef044e261553af665606e4530fed | [log] [tgz] |
---|---|---|
author | Eric Holk <eholk@google.com> | Thu Mar 07 14:20:11 2019 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Thu Mar 07 14:20:11 2019 -0800 |
tree | fef4c11a3ce418b0fb6a7494d964bca8e85a4035 | |
parent | 2f63c4d7172aacd5eaaabcc62be07c5945d1c7a2 [diff] | |
parent | b6e54554c7f4d829e32bfedeeb9b480afe9834b2 [diff] |
Merge "Teach StartupAnalyzer to handle threads with no slices" am: 2d686b1bec am: 5e978dff5c am: b6e54554c7 Change-Id: Id8b3ef246b0f6abe13c725676473a5c7b7d64c58
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.