* Added Profiler::isStub() to check if we are using a stub profiler, instead of check...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Apr 2011 16:31:02 +0000 (16:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Apr 2011 16:31:02 +0000 (16:31 +0000)
commit21e53d35908782d3f467658ce69abd20ae7c8237
treecfda196e755645cfc35934800273a82a6121eed3
parent27fafba3e94022136fb5ada3d73b96db97aa490d
* Added Profiler::isStub() to check if we are using a stub profiler, instead of checking whether $wgProfiler is set
* Replaced wfProfileClose() and wfGetProfilingOutput() by direct calls to the Profiler instance and removed them, no uses in extensions
* Also removed useless params from Profiler::getOutput() call in wfLogProfilingData()
* Only generate profiling output if it'll be used; introduced Profiler::logData() that saves profiling data (database, udp, ...) to separate it from output generation
* Removed unused Profiler::getCaller(), not used at all, and we have wfGetCaller() that does the same thing
includes/GlobalFunctions.php
includes/api/ApiBase.php
includes/db/Database.php
includes/profiler/Profiler.php
includes/profiler/ProfilerSimple.php
includes/profiler/ProfilerSimpleText.php
includes/profiler/ProfilerSimpleUDP.php
includes/profiler/ProfilerStub.php