Profiler class refactoring
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 9 Apr 2014 22:43:12 +0000 (15:43 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 14 Apr 2014 16:46:55 +0000 (16:46 +0000)
commitafa6af07d7236e868b80bebf0c80ed131db592c3
tree1845c7cc470fcb882ad209a2f73babb466b0cb2b
parentcd97e6130c12b8461afa52bee8f808d796d2e014
Profiler class refactoring

* Merged the "collate at end" and "running collate" logic
  into the base class to make it more unified and consistent.
* Pulled out DB code into ProfilerSimpleDB class.
* Removed the ProfilerSimple class and updated child classes.
* Made ProfilerSimpleTrace set the debug information too.
* Work around "ended by close()" bug from 99aef03f. Since the
  getRawData() method gets called while some wfProfileOut() calls
  have not yet happened, make it use the matched call data and let
  the final logData() method work on the full data as normal.
* Let ProfilerSimple classes use getFunctionReport() for the profiler
  debug log if it is setup instead of making it just return "".
* Made getRawData() work as best as possible with ProfilerMwprof.
* Removed $wgProfileToDatabase since it is now useless.
* Improved DB profile performance with sqlite.
* Updated visibility of various methods.

Change-Id: I1260bab2b5ba12dccbba701bcae4a637cb85c6e8
RELEASE-NOTES-1.23
includes/AutoLoader.php
includes/DefaultSettings.php
includes/profiler/Profiler.php
includes/profiler/ProfilerMwprof.php
includes/profiler/ProfilerSimple.php [deleted file]
includes/profiler/ProfilerSimpleDB.php [new file with mode: 0644]
includes/profiler/ProfilerSimpleText.php
includes/profiler/ProfilerSimpleTrace.php
includes/profiler/ProfilerSimpleUDP.php