tree: 34ae0e02f9bcb5ce50a87a87abdef0eae68b276c
  1. BUILD.bazel
  2. canonical_perf.sh
  3. clone.py
  4. clone.sh
  5. clone_test.py
  6. cuj.py
  7. cuj_catalog.py
  8. incremental_build.py
  9. incremental_build.sh
  10. perf_metrics.py
  11. perf_metrics_test.py
  12. pretty.py
  13. pretty.sh
  14. pretty_test.py
  15. README.md
  16. ui.py
  17. util.py
  18. 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.