MCPcopy Create free account
hub / github.com/deepflowio/deepflow / getActive

Method getActive

server/controller/prometheus/cache/label_value.go:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (lv *labelValue) getActive() map[string]int {
54 if active := lv.active.Load(); active != nil {
55 return active.(map[string]int)
56 }
57 return map[string]int{}
58}
59
60func cloneValueMap(src map[string]int, extra int) map[string]int {
61 dst := make(map[string]int, len(src)+extra)

Callers 2

GetIDByValueMethod · 0.95
GetValueToIDMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected