Merge "Do not dump metrics if reproxy was never started"
This commit is contained in:
@@ -221,7 +221,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer build.UploadMetrics(buildCtx, config, c.simpleOutput, buildStarted, files...)
|
defer build.UploadMetrics(buildCtx, config, c.simpleOutput, buildStarted, files...)
|
||||||
defer met.Dump(soongMetricsFile)
|
defer met.Dump(soongMetricsFile)
|
||||||
defer build.DumpRBEMetrics(buildCtx, config, rbeMetricsFile)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read the time at the starting point.
|
// Read the time at the starting point.
|
||||||
|
@@ -264,6 +264,7 @@ func Build(ctx Context, config Config) {
|
|||||||
|
|
||||||
if config.StartRBE() {
|
if config.StartRBE() {
|
||||||
startRBE(ctx, config)
|
startRBE(ctx, config)
|
||||||
|
defer DumpRBEMetrics(ctx, config, filepath.Join(config.LogsDir(), "rbe_metrics.pb"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if what&RunProductConfig != 0 {
|
if what&RunProductConfig != 0 {
|
||||||
|
Reference in New Issue
Block a user