Profiler code cleanup
authorChad Horohoe <chadh@wikimedia.org>
Tue, 4 Nov 2014 17:40:40 +0000 (09:40 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 4 Nov 2014 21:14:51 +0000 (21:14 +0000)
commit4e61f1bb8b4a43d3cc746084b5ed665fedcd7be0
tree7c43b97fca1064233c01b431baf4562dfc753ac7
parent6c7bb3a57cb8488549788c208d812718166806ea
Profiler code cleanup

- Put Profiler, ProfileSection and TransactionProfiler in their own
  files and rely on Autoloader to use them (maintenance has been
  using the autoloader here for some time--we don't profile the
  autoloader manually)
- This reduces overhead in WebStart/doMaintenance by only loading
  three functions at profiler initialization and defers until the
  first profiling call happens
- Inline callback functions in ProfilerSimpleText rather than having
  public static functions.
- Small comment and code formatting changes in various touched files.

Change-Id: Idf27677c068c50b847152c523a33e7f0c33fdeeb
includes/AutoLoader.php
includes/WebStart.php
includes/profiler/ProfileSection.php [new file with mode: 0644]
includes/profiler/Profiler.php
includes/profiler/ProfilerFunctions.php [new file with mode: 0644]
includes/profiler/ProfilerSimpleText.php
includes/profiler/TransactionProfiler.php [new file with mode: 0644]
maintenance/doMaintenance.php