commit | 87e30e38f9a341ef358c93e3336d2e4ae64fa6e4 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sun Apr 03 03:10:32 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sun Apr 03 03:10:32 2022 +0000 |
tree | 523b08ce7b8e8ac9b3a789a00e830a2d792da4b5 | |
parent | 724fa667d26a6ee5595b4603311954cb735f3575 [diff] | |
parent | 911ce8903f883c698a67ebc61969b24c7c4bdb82 [diff] |
[automerger skipped] Merge Android 12 QPR3 ab/8391262 am: f1d510cca0 -s ours am: c13941a760 -s ours am: 911ce8903f -s ours am skip reason: Merged-In I1ec8d6440629e4198a5116641d9074906c6a5ebb with SHA-1 123007c428 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/tools/trebuchet/+/17544699 Change-Id: I18d322958428f8010cfc7659fe515b536af25ec9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.