summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/plan_executor_pipeline.h
diff options
context:
space:
mode:
authorMaddie Zechar <mez2113@columbia.edu>2022-11-09 15:15:22 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-09 15:56:50 +0000
commit7981ec64d28c49dd2f41d466f7b6bfaccad66fa9 (patch)
treea38c9e96279a99fc2d6eb440f7c5ffb2a69e405b /src/mongo/db/pipeline/plan_executor_pipeline.h
parent22f77f68eff3fa6a2db61f6ed08974721f9742c4 (diff)
downloadmongo-7981ec64d28c49dd2f41d466f7b6bfaccad66fa9.tar.gz
SERVER-70646 Compute and add query planning time to PlanSummaryStats
Diffstat (limited to 'src/mongo/db/pipeline/plan_executor_pipeline.h')
-rw-r--r--src/mongo/db/pipeline/plan_executor_pipeline.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/plan_executor_pipeline.h b/src/mongo/db/pipeline/plan_executor_pipeline.h
index cfc1a9052c3..63fb2609156 100644
--- a/src/mongo/db/pipeline/plan_executor_pipeline.h
+++ b/src/mongo/db/pipeline/plan_executor_pipeline.h
@@ -29,6 +29,7 @@
#pragma once
+#include "mongo/util/duration.h"
#include <queue>
#include "mongo/db/exec/document_value/document.h"
@@ -54,7 +55,8 @@ public:
PlanExecutorPipeline(boost::intrusive_ptr<ExpressionContext> expCtx,
std::unique_ptr<Pipeline, PipelineDeleter> pipeline,
- ResumableScanType resumableScanType);
+ ResumableScanType resumableScanType,
+ Microseconds timeElapsedPlanning);
CanonicalQuery* getCanonicalQuery() const override {
return nullptr;