Lines Matching refs:metrics
59 metrics := getSoongMetrics(ctx.Config())
62 metrics.modules++
64 metrics.variants++
68 func collectMetrics(config Config, eventHandler *metrics.EventHandler) *soong_metrics_proto.SoongBu…
69 metrics := &soong_metrics_proto.SoongBuildMetrics{}
73 metrics.Modules = proto.Uint32(uint32(soongMetrics.modules))
74 metrics.Variants = proto.Uint32(uint32(soongMetrics.variants))
78 metrics.PerfCounters = soongMetrics.perfCollector.events
82 metrics.MaxHeapSize = proto.Uint64(memStats.HeapSys)
83 metrics.TotalAllocCount = proto.Uint64(memStats.Mallocs)
84 metrics.TotalAllocSize = proto.Uint64(memStats.TotalAlloc)
93 metrics.Events = append(metrics.Events, &perfInfo)
96 return metrics
206 func WriteMetrics(config Config, eventHandler *metrics.EventHandler, metricsFile string) error {
207 metrics := collectMetrics(config, eventHandler)
209 buf, err := proto.Marshal(metrics)