Bug: 113163668

Clone this repo:
  1. 56b170d [automerger skipped] Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future am: aa46c6df96 -s ours by Xin Li · 10 months ago android15-automotiveos-dev android15-qpr1-release android15-qpr1-s3-release android15-qpr1-s4-release android15-qpr1-s5-release android15-tests-dev main master aml_cfg_351010000 aml_hef_350921160 aml_hef_351016140 aml_hef_351120040 aml_hef_351314220 aml_rkp_350910000 aml_rkp_351011000 aml_rkp_351310000 android-15.0.0_r10 android-15.0.0_r11 android-15.0.0_r12 android-15.0.0_r13 android-15.0.0_r14 android-15.0.0_r15 android-15.0.0_r16 android-15.0.0_r17 android-15.0.0_r6 android-15.0.0_r7 android-15.0.0_r8 android-15.0.0_r9
  2. aa46c6d Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future by Xin Li · 10 months ago
  3. 8b91684 Migrate Test Targets to New Android Ownership Model am: bcadc466d9 am: 7bb76427e2 by Aditya Choudhary · 12 months ago
  4. 7bb7642 Migrate Test Targets to New Android Ownership Model am: bcadc466d9 by Aditya Choudhary · 12 months ago
  5. bcadc46 Migrate Test Targets to New Android Ownership Model by Aditya Choudhary · 1 year ago

Trebuchet

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.

Library

The code for the Trebuchet library can be found in the core/ directory.

Bundled Programs

Trebuchet comes bundled with several programs for analyzing one or more trace files.

Startup Analyzer

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.

Startup Summarizer

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.

Helper Scripts

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.