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

Method LoadQueryStorageWallTime

pkg/querier/stats/stats.go:225–231  ·  view source on GitHub ↗

LoadQueryStorageWallTime returns current query storage wall time.

()

Source from the content-addressed store, hash-verified

223
224// LoadQueryStorageWallTime returns current query storage wall time.
225func (s *QueryStats) LoadQueryStorageWallTime() time.Duration {
226 if s == nil {
227 return 0
228 }
229
230 return time.Duration(atomic.LoadInt64((*int64)(&s.QueryStorageWallTime)))
231}
232
233func (s *QueryStats) AddSplitQueries(count uint64) {
234 if s == nil {

Callers 4

TestStats_MergeFunction · 0.95
reportQueryStatsMethod · 0.80
MergeMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestStats_MergeFunction · 0.76