• Home
Name Date Size #Lines LOC

..--

BUILD.bazelD06-Sep-20242.1 KiB10898

README.mdD06-Sep-2024801 2115

canonical_perf.shD06-Sep-20241.9 KiB6339

clone.pyD06-Sep-202413.4 KiB395320

clone.shD06-Sep-20241.1 KiB3415

clone_test.pyD06-Sep-20243.5 KiB129107

cuj.pyD06-Sep-20244.4 KiB145100

cuj_catalog.pyD06-Sep-202414.7 KiB455367

cuj_regex_based.pyD06-Sep-20243.1 KiB10778

finder.pyD06-Sep-20244.1 KiB142112

finder_test.pyD06-Sep-20241.8 KiB5330

go_allowlists.pyD06-Sep-20244.6 KiB138106

go_allowlists_test.pyD06-Sep-20242.9 KiB8562

incremental_build.pyD06-Sep-202413.5 KiB400322

incremental_build.shD06-Sep-20241.2 KiB3815

perf_metrics.pyD06-Sep-202411 KiB326264

perf_metrics_test.pyD06-Sep-20242.3 KiB6638

plot_metrics.pyD06-Sep-20244.2 KiB141103

plot_metrics.template.txtD06-Sep-2024705 3024

plot_metrics_test.pyD06-Sep-20241.4 KiB4019

pretty.pyD06-Sep-20247.3 KiB249196

pretty.shD06-Sep-20241.1 KiB3415

pretty_test.pyD06-Sep-20243 KiB9774

ui.pyD06-Sep-20248.8 KiB283247

util.pyD06-Sep-20249.5 KiB318236

util_test.pyD06-Sep-20242.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