Added a --profiler option to all maintenance scripts.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 23 May 2013 21:06:00 +0000 (14:06 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 23 May 2013 21:20:51 +0000 (14:20 -0700)
commitd2dcea586d7685aefed2d5bd81d42b0176031481
treeeea44c910a871e941bd88cc72afe8b757e3bca53
parent3bcff45b5b1121ac464c0ad1581f76bc1289b60a
Added a --profiler option to all maintenance scripts.

* This dumps profiling information in list or trace format as specified.
* Also optimized wfProfile* function like the ProfileSection class, which
  also plays better with Profiler::setInstance().
* Fixed fatals due to wfDebug() calls in Profiler::instance() due to that
  function not yet being loaded. The calls were simply removed.
* Cleaned up file performance test script a bit.

Change-Id: I6b8cd8b30fefc1904eeeeacada7a30a46f62fe2a
includes/profiler/Profiler.php
maintenance/Maintenance.php
maintenance/fileOpPerfTest.php