* Made the profiler work in HipHop:
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 31 May 2011 06:05:05 +0000 (06:05 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 31 May 2011 06:05:05 +0000 (06:05 +0000)
commita0123d05498adadd63705e04f688c288d4395aca
treed9ce52592654ba58518902bbbd0cc92b7e24b80a
parentc00d63dda3df84fd728dc21ffe8bab8060d76ebc
* Made the profiler work in HipHop:
** Don't try to set a global variable in the same file as a class definition (Profiler.php). Set it in WebStart.php instead.
** In StartProfiler.sample, don't use require_once() to get ProfilerStub.

* Removed the setproctitle() stuff from ProfilerStub, the extension is not maintained and doesn't work with Apache 2.x
* Added an optimisation to wfProfileIn() and wfProfileOut() to reduce the overhead when profiling is not enabled
* Added the ability to configure in StartProfiler.php whether CPU time or wall-clock time is used, avoiding recompilation
StartProfiler.sample
includes/WebStart.php
includes/profiler/Profiler.php
includes/profiler/ProfilerStub.php