MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / increment

Method increment

test/chbench/chbench/src/Histogram.cc:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void Histogram::increment(uint64_t val) {
21 unsigned slot = nextPow2(val);
22 if (counts.size() <= slot) {
23 counts.resize(slot + 1);
24 }
25 ++counts[slot];
26}
27
28std::vector<uint64_t> Histogram::getCounts() const {
29 return counts;

Callers 1

peekThreadFunction · 0.45

Calls 3

nextPow2Function · 0.85
resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected