| 282 | } |
| 283 | |
| 284 | Future<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 | |
| 297 | void ReadWriteCommon::getMetrics(std::vector<PerfMetric>& m) { |
| 298 | double duration = metricsDuration; |