summaryrefslogtreecommitdiff
path: root/docs/perf.md
diff options
context:
space:
mode:
author Usta Shrestha <usta@google.com> 2022-09-09 23:38:47 -0400
committer Usta (Tsering) Shrestha <usta@google.com> 2022-09-12 15:21:30 +0000
commit3ff3fe82c0baab8798d01f850f877d070ab91cfa (patch)
tree672c48e1a81eeab3bf1cf973c857bb81a33d3abe /docs/perf.md
parent797aa42e28fe75597a0bd7d4fb5404e7c58e78e7 (diff)
Mention SOONG_UI_NINJA_ARGS in perf.md
Test: N/A Bug: N/A Change-Id: I2516caa0389962665622fe80f568d8ff17b323dc
Diffstat (limited to 'docs/perf.md')
-rw-r--r--docs/perf.md14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/perf.md b/docs/perf.md
index 86a27b43f..d71872c94 100644
--- a/docs/perf.md
+++ b/docs/perf.md
@@ -221,6 +221,18 @@ You'll likely need to cross-reference this data against the build graph in the
various .ninja files. The files are (mostly) human-readable, but a (slow) web
interface can be used by running `NINJA_ARGS="-t browse <target>" m`.
+There is also `SOONG_UI_NINJA_ARGS`, which passes ninja arguments to soong ui's
+ninja invocations, e.g. to emit $OUT_DIR/soong/build.ninja, $OUT_DIR/soong/module-graph.json, etc.
+
+```bash
+$ m nothing
+$ touch Android.bp
+$ SOONG_UI_NINJA_ARGS="-d explain" m nothing
+...
+ninja explain: restat of output out/soong/build.ninja older than most recent input Android.bp
+...
+```
+
#### Builds take a long time
If the long part in the trace view of a build is a relatively solid block, then
@@ -228,7 +240,7 @@ the performance is probably more related to how much time the actual build
commands are taking than having extra dependencies, or slowdowns in
soong/kati/ninja themselves.
-Beyond looking at visible outliers in the trace view, we don't have any tooling
+Beyond looking at visible outliers in the trace view, we don't have any tooli
to help in this area yet. It's possible to aggregate some of the raw data
together, but since our builds are heavily parallelized, it's particularly easy
for build commands to impact unrelated build commands. This is an area we'd