Track cpu usage metrics for query execution #2140
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
Tracks the number of rows scanned and the number of index seeks performed during query execution.
It does not track any byte-level metrics since that depends on #2098.
API and ABI breaking changes
None
Expected complexity level and risk
2
Note, this patch depends on #2130.
Computing and recording the metrics themselves was pretty straightforward, however the previous tuple at a time execution model was not suitable for tracking operator-level metrics, hence it was necessary to employ a new execution model.
Testing
A current test was updated to assert on index seek metrics