Currently unused and untested.
Came up in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/774945/.
new SectionProfiler is used in three places in all of Codesearch indexed repos, all within core, and without arguments, thus not enabling the trace option. Most of the code in SectionProfiler is only relevant to the trace option.
Methods actually used:
- scopedProfileIn
- scopedProfileOut
- getFunctionStats