Internal change (diffbased).

PiperOrigin-RevId: 539237974
This commit is contained in:
Etienne Perot
2023-06-09 20:23:32 -07:00
committed by gVisor bot
parent 8cc1d5bbde
commit 4708d1c115
+10
View File
@@ -893,3 +893,13 @@ func (v *Verifier) Verify(snapshot *Snapshot) error {
v.lastPacker = newPacker
return nil
}
// AllMetrics returns the metadata of all the metrics that were declared as
// part of this Verifier.
func (v *Verifier) AllMetrics() []*pb.MetricMetadata {
metrics := make([]*pb.MetricMetadata, 0, len(v.knownMetrics))
for _, m := range v.knownMetrics {
metrics = append(metrics, m.metadata)
}
return metrics
}