MCPcopy Create free account
hub / github.com/apple/foundationdb / Counter

Method Counter

fdbrpc/Stats.actor.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "flow/actorcompiler.h" // has to be last include
23
24Counter::Counter(std::string const& name, CounterCollection& collection)
25 : name(name), interval_start(0), last_event(0), interval_sq_time(0), roughness_interval_start(0), interval_delta(0),
26 interval_start_value(0) {
27 metric.init(collection.name + "." + (char)toupper(name.at(0)) + name.substr(1), collection.id);
28 collection.counters.push_back(this);
29}
30
31void Counter::operator+=(Value delta) {
32 if (!delta)

Callers

nothing calls this directly

Calls 4

atMethod · 0.80
substrMethod · 0.80
initMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected