MCPcopy Create free account
hub / github.com/cortexproject/cortex / AddScannedSamples

Method AddScannedSamples

pkg/querier/stats/stats.go:341–347  ·  view source on GitHub ↗
(count uint64)

Source from the content-addressed store, hash-verified

339}
340
341func (s *QueryStats) AddScannedSamples(count uint64) {
342 if s == nil {
343 return
344 }
345
346 atomic.AddUint64(&s.ScannedSamples, count)
347}
348
349func (s *QueryStats) LoadScannedSamples() uint64 {
350 if s == nil {

Callers 4

TestStats_MergeFunction · 0.95
MergeMethod · 0.95
StatsRendererFunction · 0.80
partitionMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestStats_MergeFunction · 0.76