Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexproject/cortex
/ SetPeakSamples
Method
SetPeakSamples
pkg/querier/stats/stats.go:365–371 ·
view source on GitHub ↗
(count uint64)
Source
from the content-addressed store, hash-verified
363
}
364
365
func
(s *QueryStats) SetPeakSamples(count uint64) {
366
if
s == nil {
367
return
368
}
369
370
atomic.StoreUint64(&s.PeakSamples, count)
371
}
372
373
func
(s *QueryStats) LoadPeakSamples() uint64 {
374
if
s == nil {
Callers
2
Merge
Method · 0.95
partition
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected