commit | f1d510cca09584d581060b6229d580aa4a189552 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Apr 01 20:33:11 2022 +0000 |
committer | Xin Li <delphij@google.com> | Fri Apr 01 20:33:11 2022 +0000 |
tree | 523b08ce7b8e8ac9b3a789a00e830a2d792da4b5 | |
parent | 736f05ccb6925fd93a4966339d96943549427cb1 [diff] | |
parent | 123007c4288ef1c4d29bb52bb3f57dc3e96ff3fa [diff] |
Merge Android 12 QPR3 ab/8391262 Bug: 226662282 Merged-In: I1ec8d6440629e4198a5116641d9074906c6a5ebb Change-Id: Ia42802a93fee1495e7e0757b88806bf83d47a1b3
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.