diff options
| author | Colin Cross <ccross@android.com> | 2019-06-21 15:08:30 -0700 |
|---|---|---|
| committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2019-09-26 19:29:24 +0200 |
| commit | 9451c7c8003c76e5a3df061f48eae4ace109ae42 (patch) | |
| tree | 7c4584248156c94f451ca18aaf3d3d9b8ec9443e /cmd | |
| parent | 195b8ededbceccca41bdafcb8c1e0d2b23c3f42e (diff) | |
| download | build_soong-9451c7c8003c76e5a3df061f48eae4ace109ae42.tar.gz build_soong-9451c7c8003c76e5a3df061f48eae4ace109ae42.tar.bz2 build_soong-9451c7c8003c76e5a3df061f48eae4ace109ae42.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.go | 1 |
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")) |
