summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.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/curop.h
parent22f77f68eff3fa6a2db61f6ed08974721f9742c4 (diff)
downloadmongo-7981ec64d28c49dd2f41d466f7b6bfaccad66fa9.tar.gz
SERVER-70646 Compute and add query planning time to PlanSummaryStats
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index c4cfcbcbb42..986a545e992 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -284,6 +284,10 @@ public:
// Details of any error (whether from an exception or a command returning failure).
Status errInfo = Status::OK();
+ // Amount of time spent planning the query. Begins after parsing and ends
+ // at creation of PlanExecutor.
+ Microseconds planningTime{0};
+
// response info
Microseconds executionTime{0};
long long nreturned{-1};