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

Method check

fdbserver/workloads/ReadWrite.actor.cpp:284–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284Future<bool> ReadWriteCommon::check(Database const& cx) {
285 clients.clear();
286
287 if (!cancelWorkersAtDuration && now() < metricsStart + metricsDuration)
288 metricsDuration = now() - metricsStart;
289
290 g_traceBatch.dump();
291 if (clientId == 0)
292 return ReadWriteCommonImpl::traceDumpWorkers(dbInfo);
293 else
294 return true;
295}
296
297void ReadWriteCommon::getMetrics(std::vector<PerfMetric>& m) {
298 double duration = metricsDuration;

Callers

nothing calls this directly

Calls 3

nowFunction · 0.85
clearMethod · 0.65
dumpMethod · 0.45

Tested by

no test coverage detected