MCPcopy Create free account
hub / github.com/prometheus/common / Len

Method Len

model/value.go:315–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315func (vec Vector) Len() int { return len(vec) }
316func (vec Vector) Swap(i, j int) { vec[i], vec[j] = vec[j], vec[i] }
317
318// Less compares first the metrics, then the timestamp.

Callers 4

TestProtoFormatUnchangedFunction · 0.45
readingMetricNameMethod · 0.45
startLabelNameMethod · 0.45
startTimestampMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestProtoFormatUnchangedFunction · 0.36