diff options
author | Haley Connelly <haley.connelly@10gen.com> | 2018-08-13 10:15:38 -0400 |
---|---|---|
committer | Haley Connelly <haley.connelly@10gen.com> | 2018-08-13 10:16:22 -0400 |
commit | 1ce4c3db9f598a5c0988362a6908d9b83c07e94f (patch) | |
tree | 65f8dd10a32230218423f87adc5f10b79cf5b31c /src/mongo/db/query/explain.h | |
parent | ec6f2a54d8b901e95e556d53647944be8ce441d5 (diff) | |
download | mongo-1ce4c3db9f598a5c0988362a6908d9b83c07e94f.tar.gz |
SERVER-35980 Experimental new output format for planCacheListPlans
Diffstat (limited to 'src/mongo/db/query/explain.h')
-rw-r--r-- | src/mongo/db/query/explain.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/src/mongo/db/query/explain.h b/src/mongo/db/query/explain.h index cb177321f1c..451ffabe219 100644 --- a/src/mongo/db/query/explain.h +++ b/src/mongo/db/query/explain.h @@ -164,6 +164,22 @@ public: **/ static std::unique_ptr<PlanStageStats> getWinningPlanTrialStats(PlanExecutor* exec); + /** + * Generates the execution stats section for the stats tree 'stats', adding the resulting BSON + * to 'out'. + * + * The 'totalTimeMillis' value passed here will be added to the top level of the execution stats + * section, but will not affect the reporting of timing for individual stages. If + * 'totalTimeMillis' is not set, we use the approximate timing information collected by the + * stages. + * + * Stats are generated at the verbosity specified by 'verbosity'. + **/ + static void generateSinglePlanExecutionInfo(const PlanStageStats* stats, + ExplainOptions::Verbosity verbosity, + boost::optional<long long> totalTimeMillis, + BSONObjBuilder* out); + private: /** * Adds the 'queryPlanner' explain section to the BSON object being built @@ -207,24 +223,6 @@ private: BSONObjBuilder* out); /** - * Generates the execution stats section for the stats tree 'stats', - * adding the resulting BSON to 'out'. - * - * The 'totalTimeMillis' value passed here will be added to the top level of - * the execution stats section, but will not affect the reporting of timing for - * individual stages. If 'totalTimeMillis' is not set, we use the approximate timing - * information collected by the stages. - * - * Stats are generated at the verbosity specified by 'verbosity'. - * - * This is a helper for generating explain BSON. It is used by generateExecutionInfo(). - */ - static void generateSinglePlanExecutionInfo(const PlanStageStats* stats, - ExplainOptions::Verbosity verbosity, - boost::optional<long long> totalTimeMillis, - BSONObjBuilder* out); - - /** * Adds the 'serverInfo' explain section to the BSON object being build * by 'out'. * |