aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-06-21 15:08:30 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 19:03:32 +0200
commit3894ca654b2ffbae6d3a977b9596c15e301e20cf (patch)
tree98babc93110bb34619501e538a7a02a572644030 /cmd
parent97152308e7c69ada3dd25121c0757db449689521 (diff)
downloadbuild_soong-3894ca654b2ffbae6d3a977b9596c15e301e20cf.tar.gz
build_soong-3894ca654b2ffbae6d3a977b9596c15e301e20cf.tar.bz2
build_soong-3894ca654b2ffbae6d3a977b9596c15e301e20cf.zip
Compute critical path when ninja finishes
Keep a running map of the critical path to each edge as it finishes. At the end of the build, find the edge with the longest critical path and print the path to out/soong.log. Test: critical_path_test.go Change-Id: Ie01d26b068b768156b166bff00cdc3273e8124ca
Diffstat (limited to 'cmd')
-rw-r--r--cmd/soong_ui/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go
index 1659b24d..ec4f90e0 100644
--- a/cmd/soong_ui/main.go
+++ b/cmd/soong_ui/main.go
@@ -162,6 +162,7 @@ func main() {
stat.AddOutput(status.NewVerboseLog(log, filepath.Join(logsDir, "verbose.log")))
stat.AddOutput(status.NewErrorLog(log, filepath.Join(logsDir, "error.log")))
stat.AddOutput(status.NewProtoErrorLog(log, filepath.Join(logsDir, "build_error")))
+ stat.AddOutput(status.NewCriticalPath(log))
defer met.Dump(filepath.Join(logsDir, "soong_metrics"))