SERVER-139551Needs Scheduling

Measure time taken in type inference

We should measure the time taken applying type inference from $match stages in the pipeline. This is the same code block that we will allow to be disabled in SERVER-139549 $match narrowing / branch on forEachPossiblyNarrowingStage and in the future computed field type info). We need to measure the time in that block and report it in some way (the task includes deciding how).

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.