tree: 8e6f31cf3d99b75240bba0f7177cb3a21e9cb785
  1. BUILD.bazel
  2. canonical_perf.sh
  3. cuj_catalog.py
  4. incremental_build.py
  5. incremental_build.sh
  6. perf_metrics.py
  7. perf_metrics_test.py
  8. pretty.py
  9. README.md
  10. ui.py
  11. util.py
  12. util_test.py
scripts/incremental_build/README.md

How to Use

The most basic invocation, e.g. incremental_build.sh -- libc, is logically equivalent to

  1. running m --skip-soong-tests libc and then
  2. parsing $OUTDIR/soong_metrics and $OUTDIR/bp2build_metrics.pb files
  3. Adding timing-related metrics from those files into out/timing_logs/metrics.csv
  4. repeat 1-3 for each CUJ

CUJs are defined in cuj_catalog.py Each row in metrics.csv has the timings of various “phases” of a build.

Try incremental_build.sh --help and canoncial_perf.sh --help for help on usage.