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

Function newLabelValue

server/controller/prometheus/cache/label_value.go:42–51  ·  view source on GitHub ↗
(org *common.ORG)

Source from the content-addressed store, hash-verified

40}
41
42func newLabelValue(org *common.ORG) *labelValue {
43 lv := &labelValue{
44 org: org,
45 active: atomic.Value{},
46 pending: make(map[string]int),
47 pendingIDToValue: make(map[int]string),
48 }
49 lv.active.Store(make(map[string]int))
50 return lv
51}
52
53func (lv *labelValue) getActive() map[string]int {
54 if active := lv.active.Load(); active != nil {

Callers 2

newCacheFunction · 0.70
newTestLabelValueFunction · 0.70

Calls 1

StoreMethod · 0.80

Tested by 1

newTestLabelValueFunction · 0.56