aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/soong_ui
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-07-13 14:27:31 -0700
committerDan Willemsen <dwillemsen@google.com>2017-07-13 15:09:44 -0700
commitcae59bc29de92e135ca53cfb1142d3524b62f846 (patch)
tree8a5c5c634c53b8941d6189d32b2d1b5975456e0d /cmd/soong_ui
parent1b822867360844bea1c30facb95492ff21eb4e6b (diff)
downloadbuild_soong-cae59bc29de92e135ca53cfb1142d3524b62f846.tar.gz
build_soong-cae59bc29de92e135ca53cfb1142d3524b62f846.tar.bz2
build_soong-cae59bc29de92e135ca53cfb1142d3524b62f846.zip
Add microfactory tracing
Test: m clean; load out/build.trace.gz in chrome://tracing Test: m -j nothing; load again Change-Id: I67d4e006a4bdde593b54c20d6d93a48278fe696d
Diffstat (limited to 'cmd/soong_ui')
-rw-r--r--cmd/soong_ui/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go
index 26887ae6..94d6d5c4 100644
--- a/cmd/soong_ui/main.go
+++ b/cmd/soong_ui/main.go
@@ -89,6 +89,10 @@ func main() {
buildCtx.CompleteTrace("startup", start_time, uint64(time.Now().UnixNano()))
}
}
+
+ if executable, err := os.Executable(); err == nil {
+ trace.ImportMicrofactoryLog(filepath.Join(filepath.Dir(executable), "."+filepath.Base(executable)+".trace"))
+ }
}
build.Build(buildCtx, config, build.BuildAll)