diff options
author | Kevin Albertson <kevin.albertson@10gen.com> | 2016-08-29 13:45:05 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2016-08-29 13:48:10 -0400 |
commit | be09d7bf0a72f44f8909221f178a70a2cb0a6b68 (patch) | |
tree | d220f4b5a00005e9d20332efa4711f960a466546 /src/mongo/db/stats/top.h | |
parent | 0739882bb06e09936a9285cf385c80948fe2a619 (diff) | |
download | mongo-be09d7bf0a72f44f8909221f178a70a2cb0a6b68.tar.gz |
SERVER-25180 make full histogram output optional
For full per-collection histograms, use the aggregation stage
{ $collStats: { latencyStats: { histograms: true } } }
For the full global histogram, invoke serverStatus with
db.serverStatus( { opLatencies: { histograms: true } } )
Diffstat (limited to 'src/mongo/db/stats/top.h')
-rw-r--r-- | src/mongo/db/stats/top.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/stats/top.h b/src/mongo/db/stats/top.h index c613a624e4d..903b8e5c510 100644 --- a/src/mongo/db/stats/top.h +++ b/src/mongo/db/stats/top.h @@ -104,7 +104,7 @@ public: /** * Appends the collection-level latency statistics */ - void appendLatencyStats(StringData ns, BSONObjBuilder* builder); + void appendLatencyStats(StringData ns, bool includeHistograms, BSONObjBuilder* builder); /** * Increments the global histogram. @@ -116,7 +116,7 @@ public: /** * Appends the global latency statistics. */ - void appendGlobalLatencyStats(BSONObjBuilder* builder); + void appendGlobalLatencyStats(bool includeHistograms, BSONObjBuilder* builder); private: void _appendToUsageMap(BSONObjBuilder& b, const UsageMap& map) const; |