[automerger skipped] Update ftrace parser for kernel 5.15 changes am: 09f6f074e4 am: 736f05ccb6 am: 123007c428 -s ours

am skip reason: Merged-In I7f11cb530f8f359cfea09b29b496a34e961d87fc with SHA-1 ad1e70c0ff is already in history

Original change: https://android-review.googlesource.com/c/platform/tools/trebuchet/+/2048863

Change-Id: I3261609432b8615fd0882619ef7e89f4aa135a13
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: 523b08ce7b8e8ac9b3a789a00e830a2d792da4b5
  1. core/
  2. gradle/
  3. scripts/
  4. trebuchet/
  5. .gitignore
  6. Android.bp
  7. build.gradle
  8. CONTRIBUTING.md
  9. gradle.properties
  10. gradlew
  11. gradlew.bat
  12. LICENSE
  13. OWNERS
  14. README.md
  15. settings.gradle
README.md

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.