diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/build/docs/debugging_slow_builds.md | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/build/docs/debugging_slow_builds.md')
-rw-r--r-- | third_party/libwebrtc/build/docs/debugging_slow_builds.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/libwebrtc/build/docs/debugging_slow_builds.md b/third_party/libwebrtc/build/docs/debugging_slow_builds.md new file mode 100644 index 0000000000..315690c32f --- /dev/null +++ b/third_party/libwebrtc/build/docs/debugging_slow_builds.md @@ -0,0 +1,19 @@ +# Debugging slow builds + +Some tips for debugging slow build times: +* Use [ninjatracing](https://github.com/nico/ninjatracing) and chrome:tracing to + view a timeline of the most recent build. + * Many bots output a build trace (look for a `"ninja_log"` link). +* Use `gn gen --tracelog trace.json` to create a similar trace for `gn gen`. +* Depot Tool's `autoninja` has logic for summarizing slow steps. Enable it via: + * `NINJA_SUMMARIZE_BUILD=1 autoninja -C out/Debug my_target` +* Many Android templates make use of + [`md5_check.py`](https://cs.chromium.org/chromium/src/build/android/gyp/util/md5_check.py) + to optimize incremental builds. + * Set `PRINT_BUILD_EXPLANATIONS=1` to have these commands log which inputs + changed. +* If you suspect files are being rebuilt unnecessarily during incremental + builds: + * Use `ninja -n -d explain` to figure out why ninja thinks a target is dirty. + * Ensure actions are taking advantage of ninja's `restat=1` feature by not + updating timestamps on outputs when their content does not change. |