MCPcopy Create free account
hub / github.com/apache/trafficserver / increment

Method increment

include/tsutil/Metrics.h:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 int64_t
147 increment(IdType id, uint64_t val = 1)
148 {
149 auto metric = lookup(id);
150
151 return (metric ? metric->_value.fetch_add(val, MEMORY_ORDER) : NOT_FOUND);
152 }
153
154 int64_t
155 decrement(IdType id, uint64_t val = 1)

Callers 5

IncrementMethod · 0.45
increment_for_allocMethod · 0.45
increment_for_freeMethod · 0.45
allocMethod · 0.45
freeMethod · 0.45

Calls 1

lookupFunction · 0.85

Tested by

no test coverage detected