Add build tracing

This creates a rotating build.trace.gz in the out directory that can be
loaded with chrome://tracing. It'll include start and end timings for
make/soong/kati/ninja, and it will import and time-correct the ninja log
files.

Test: m -j; load out/build.trace.gz in chrome://tracing
Test: multiproduct_kati -keep; load out/multiproduct*/build.trace.gz
Change-Id: Ic060fa9515eb88d95dbe16712479dae9dffcf626
This commit is contained in:
Dan Willemsen
2016-08-21 15:17:17 -07:00
parent c2af0bedc1
commit d9f6fa28d6
13 changed files with 483 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ bootstrap_go_package {
pkgPath: "android/soong/ui/build",
deps: [
"soong-ui-logger",
"soong-ui-tracer",
],
srcs: [
"build.go",