diff options
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index b8df781916f..feb616ded07 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -698,6 +698,14 @@ string OpDebug::report(OperationContext* opCtx, const SingleThreadedLockStats* l s << " prepareConflictDuration: " << prepareConflictDurationMillis; } + if (dataThroughputLastSecond) { + s << " dataThroughputLastSecond: " << *dataThroughputLastSecond << " MB/sec"; + } + + if (dataThroughputAverage) { + s << " dataThroughputAverage: " << *dataThroughputAverage << " MB/sec"; + } + OPDEBUG_TOSTRING_HELP(nShards); OPDEBUG_TOSTRING_HELP(cursorid); if (mongotCursorId) { @@ -829,6 +837,9 @@ void OpDebug::append(OperationContext* opCtx, OPDEBUG_APPEND_ATOMIC("prepareReadConflicts", additiveMetrics.prepareReadConflicts); OPDEBUG_APPEND_ATOMIC("writeConflicts", additiveMetrics.writeConflicts); + OPDEBUG_APPEND_OPTIONAL("dataThroughputLastSecond", dataThroughputLastSecond); + OPDEBUG_APPEND_OPTIONAL("dataThroughputAverage", dataThroughputAverage); + b.appendNumber("numYield", curop.numYields()); OPDEBUG_APPEND_NUMBER(nreturned); |