summaryrefslogtreecommitdiff
path: root/cmd/soong_ui/main.go
diff options
context:
space:
mode:
author Patrice Arruda <patricearruda@google.com> 2020-07-07 12:48:26 +0000
committer Patrice Arruda <patricearruda@google.com> 2020-08-31 20:50:13 +0000
commite7836594eceb09c5921a7a79f7454c0967aaf38c (patch)
tree005f51ec78061e33ebe4334014053657b8f1b663 /cmd/soong_ui/main.go
parentde44afac93ac5bba06f29f40caec91ce56a31a98 (diff)
Add RBE metrics dump in Soong UI.
From aosp/1329396, the RBE metrics protobuf file is part of the metrics uploading process. The RBE metrics protobuf file is generated by running the bootstrap shutdown command. A new function named DumpRBEMetrics was written in order to generate the RBE metrics protobuf file before sending to the uploading process. Bug: b/140638454 Test: * Unit test cases * Ran RBE build on my local host and verified the metrics protobuf file is created. * Ran non-RBE build after RBE build and verified that the previous metrics protobuf file was deleted. Change-Id: I4b8068905cb67c4b8c2d94793917b98974fed707 Merged-In: I4b8068905cb67c4b8c2d94793917b98974fed707
Diffstat (limited to 'cmd/soong_ui/main.go')
-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 0471a6ef2..1a4d1747e 100644
--- a/cmd/soong_ui/main.go
+++ b/cmd/soong_ui/main.go
@@ -186,6 +186,7 @@ func main() {
config.Parallel(), config.RemoteParallel(), config.HighmemParallel())
defer met.Dump(soongMetricsFile)
+ defer build.DumpRBEMetrics(buildCtx, config, rbeMetricsFile)
if start, ok := os.LookupEnv("TRACE_BEGIN_SOONG"); ok {
if !strings.HasSuffix(start, "N") {