Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
func
(m *MaxTracker) Tick() {
17
m.old.Store(m.current.Load())
18
m.current.Store(0)
19
}
20
21
func
(m *MaxTracker) Load() int64 {
22
c := m.current.Load()
Callers
2
TestIngesterMetrics
Function · 0.95
TestMaxTracker
Function · 0.95
Calls
2
Load
Method · 0.80
Store
Method · 0.65
Tested by
2
TestIngesterMetrics
Function · 0.76
TestMaxTracker
Function · 0.76