Page MenuHomePhabricator

Remove trace and collation support from SectionProfiler
Closed, ResolvedPublic

Description

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

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 776356 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/core@master] [WIP] profiler: Remove unused trace-related methods

https://gerrit.wikimedia.org/r/776356

Krinkle triaged this task as Low priority.

Change 778615 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/core@master] profiler: Deprecate unused 'trace' option

https://gerrit.wikimedia.org/r/778615

Change 779878 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/core@REL1_38] profiler: Deprecate unused 'trace' option

https://gerrit.wikimedia.org/r/779878

Change 778615 merged by jenkins-bot:

[mediawiki/core@master] profiler: Deprecate unused 'trace' option

https://gerrit.wikimedia.org/r/778615

Change 779878 merged by jenkins-bot:

[mediawiki/core@REL1_38] profiler: Deprecate unused 'trace' option

https://gerrit.wikimedia.org/r/779878

Change 776356 merged by jenkins-bot:

[mediawiki/core@master] profiler: Remove deprecated 'trace' feature in SectionProfiler

https://gerrit.wikimedia.org/r/776356