diff options
author | Maddie Zechar <mez2113@columbia.edu> | 2022-11-09 15:15:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-09 15:56:50 +0000 |
commit | 7981ec64d28c49dd2f41d466f7b6bfaccad66fa9 (patch) | |
tree | a38c9e96279a99fc2d6eb440f7c5ffb2a69e405b /src/mongo/db/curop.h | |
parent | 22f77f68eff3fa6a2db61f6ed08974721f9742c4 (diff) | |
download | mongo-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.h | 4 |
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}; |