commit | acfb58a5f7ec3bb11d13b14755400028ba2663de | [log] [tgz] |
---|---|---|
author | Eric Holk <eholk@google.com> | Tue Mar 05 12:31:54 2019 -0800 |
committer | Eric Holk <eholk@google.com> | Wed Mar 06 12:11:32 2019 -0800 |
tree | 455cd141f629467bad9ced23b90a71383db15e36 | |
parent | 79bf8bfa7fd1e27ab431d7fd0989648d5237c127 [diff] |
Fix presubmit tests Our Android.bp and TEST_MAPPING files were incorrect, so tests were not running on presubmit. This change corrects this. In addition, several tests were failing because we do not include sample trace data in the repo. These tests are now skipped by introducing a @NeedsSampleData annotation that is used to filter these tests out. Change-Id: Ie7172a01bb9cf2fa6142fb0f70c1a698fa2dbe15
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.