MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / reset

Method reset

src/ConsoleMetric.actor.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void MetricStat::reset() {
152 sum = 0;
153 avg = 0.0;
154 count = 0;
155 max = std::numeric_limits<int64_t>::min();
156 min = std::numeric_limits<int64_t>::max();
157 values.clear();
158 percentile25 = 0;
159 percentile50 = 0;
160 percentile90 = 0;
161 percentile99 = 0;
162 percentile9999 = 0;
163 startTimeNanoSeconds = timer_int();
164 hasNewData = false;
165}
166
167ACTOR static Future<Void> publisher(ConsoleMetric* self) {
168 loop {

Callers 4

RegExPredicateMethod · 0.45
setOptionsMethod · 0.45
publishMethod · 0.45
doIndexUpdateActorMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected