diff options
Diffstat (limited to 'src/mongo/db/assemble_response.cpp')
-rw-r--r-- | src/mongo/db/assemble_response.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/assemble_response.cpp b/src/mongo/db/assemble_response.cpp index 06ac6c090c6..2ecfa4093c3 100644 --- a/src/mongo/db/assemble_response.cpp +++ b/src/mongo/db/assemble_response.cpp @@ -493,12 +493,13 @@ mongo::DbResponse mongo::assembleResponse(OperationContext* opCtx, const Message } currentOp.ensureStarted(); currentOp.done(); - debug.executionTimeMicros = currentOp.totalTimeMicros(); + debug.executionTimeMicros = durationCount<Microseconds>(currentOp.elapsedTimeExcludingPauses()); - logThresholdMs += currentOp.getExpectedLatencyMs(); Top::get(opCtx->getServiceContext()) .incrementGlobalLatencyStats( - opCtx, currentOp.totalTimeMicros(), currentOp.getReadWriteType()); + opCtx, + durationCount<Microseconds>(currentOp.elapsedTimeExcludingPauses()), + currentOp.getReadWriteType()); const bool shouldSample = serverGlobalParams.sampleRate == 1.0 ? true |