Add total build time to metrics
Determining the total build time from the existing metrics is tricky because some of the metrics are overlapping. For example, the "soong" metric includes "blueprint bootstrap", "environment check", "minibp", "bpglob", "minibootstrap", and "bootstrap". Create a new singleton "total" metric that covers the interesting parts of the build. Test: m nothing Change-Id: Iedcf5c9cf0d27252b694d35e6ff66ca1fcf734ac
This commit is contained in:
@@ -30,6 +30,7 @@ const (
|
||||
RunSoong = "soong"
|
||||
PrimaryNinja = "ninja"
|
||||
TestRun = "test"
|
||||
Total = "total"
|
||||
)
|
||||
|
||||
type Metrics struct {
|
||||
@@ -56,6 +57,8 @@ func (m *Metrics) SetTimeMetrics(perf soong_metrics_proto.PerfInfo) {
|
||||
case PrimaryNinja:
|
||||
m.metrics.NinjaRuns = append(m.metrics.NinjaRuns, &perf)
|
||||
break
|
||||
case Total:
|
||||
m.metrics.Total = &perf
|
||||
default:
|
||||
// ignored
|
||||
}
|
||||
|
Reference in New Issue
Block a user