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

Method Tick

pkg/util/math/max_tracker.go:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func (m *MaxTracker) Tick() {
17 m.old.Store(m.current.Load())
18 m.current.Store(0)
19}
20
21func (m *MaxTracker) Load() int64 {
22 c := m.current.Load()

Callers 2

TestIngesterMetricsFunction · 0.95
TestMaxTrackerFunction · 0.95

Calls 2

LoadMethod · 0.80
StoreMethod · 0.65

Tested by 2

TestIngesterMetricsFunction · 0.76
TestMaxTrackerFunction · 0.76