commit | d4f9f8516993731b88bdf62448dd9d3e489e5ee4 | [log] [tgz] |
---|---|---|
author | Aurimas Liutikas <aurimas@google.com> | Tue May 11 21:34:37 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 11 21:34:37 2021 +0000 |
tree | 0ba1896045b67bf6dd1fb8f2470fc79a13b68fcc | |
parent | 4dc24697176c724e71c8cbe35f73af474e967afc [diff] | |
parent | f39cee64120593d0589a926e2da2e836e59a1bc0 [diff] |
Fix usage of minBy to unblock Kotlin 1.5 upgrade am: 6e914b3fe5 am: b8f6cdd074 am: de6c7e8d3a am: f39cee6412 Original change: https://android-review.googlesource.com/c/platform/tools/trebuchet/+/1697313 Change-Id: I4243e1de72d48283ac6ac224ca965760590c437c
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.