• Home
Name Date Size #Lines LOC

..--

BUILD.bazelD04-Jul-20252.1 KiB10898

README.mdD04-Jul-2025801 2115

canonical_perf.shD04-Jul-20251.9 KiB6339

clone.pyD04-Jul-202513.4 KiB395320

clone.shD04-Jul-20251.1 KiB3415

clone_test.pyD04-Jul-20253.5 KiB129107

cuj.pyD04-Jul-20254.4 KiB145100

cuj_catalog.pyD04-Jul-202514.7 KiB455367

cuj_regex_based.pyD04-Jul-20253.1 KiB10778

finder.pyD04-Jul-20254.1 KiB142112

finder_test.pyD04-Jul-20251.8 KiB5330

go_allowlists.pyD04-Jul-20254.6 KiB138106

go_allowlists_test.pyD04-Jul-20252.9 KiB8562

incremental_build.pyD04-Jul-202513.5 KiB400322

incremental_build.shD04-Jul-20251.2 KiB3815

perf_metrics.pyD04-Jul-202511 KiB326264

perf_metrics_test.pyD04-Jul-20252.3 KiB6638

plot_metrics.pyD04-Jul-20254.2 KiB141103

plot_metrics.template.txtD04-Jul-2025705 3024

plot_metrics_test.pyD04-Jul-20251.4 KiB4019

pretty.pyD04-Jul-20257.3 KiB249196

pretty.shD04-Jul-20251.1 KiB3415

pretty_test.pyD04-Jul-20253 KiB9774

ui.pyD04-Jul-20258.8 KiB283247

util.pyD04-Jul-20259.5 KiB318236

util_test.pyD04-Jul-20252.9 KiB8159

README.md

1# How to Use
2
3The most basic invocation, e.g. `incremental_build.sh --cujs "modify Android.bp$" -- libc`, is logically
4equivalent to
5
61. running `m --skip-soong-tests libc` and then
72. parsing `$OUTDIR/soong_metrics`, `$OUTDIR/bp2build_metrics.pb` etc
83. Adding timing-related metrics from step 2 into `out/timing_logs/metrics.csv`
94. Now it's "warmed-up", for each cuj:
10   1. apply changes associate with the cuj
11   1. repeat steps 1 through 3
12
13CUJs are defined in `cuj_catalog.py`
14Each row in `metrics.csv` has the timings of various "phases" of a build.
15
16Try `incremental_build.sh --help` and `canoncial_perf.sh --help` for help on
17usage.
18
19## CUJ groups
20
21Since most CUJs involve making changes to the source code, we group a number of cujs together such that when any of them is specified, all CUJs