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

Method LoadPeakSamples

pkg/querier/stats/stats.go:373–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371}
372
373func (s *QueryStats) LoadPeakSamples() uint64 {
374 if s == nil {
375 return 0
376 }
377
378 return atomic.LoadUint64(&s.PeakSamples)
379}
380
381// Merge the provided Stats into this one.
382func (s *QueryStats) Merge(other *QueryStats) {

Callers 6

TestStats_MergeFunction · 0.95
MergeMethod · 0.95
reportQueryStatsMethod · 0.80
Test_StatsRendererFunction · 0.80
partitionMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestStats_MergeFunction · 0.76
Test_StatsRendererFunction · 0.64