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

Method AddPeakSamples

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

Source from the content-addressed store, hash-verified

355}
356
357func (s *QueryStats) AddPeakSamples(count uint64) {
358 if s == nil {
359 return
360 }
361
362 atomic.AddUint64(&s.PeakSamples, count)
363}
364
365func (s *QueryStats) SetPeakSamples(count uint64) {
366 if s == nil {

Callers 2

TestStats_MergeFunction · 0.95
StatsRendererFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStats_MergeFunction · 0.76