aboutsummaryrefslogtreecommitdiffstats
path: root/StartProfiler.sample
Commit message (Collapse)AuthorAgeFilesLines
* * Made the profiler work in HipHop:Tim Starling2011-05-311-3/+1
| | | | | | | | | | | | | ** 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 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89206
* Update StartProfiler.sample after r86175Sam Reed2011-04-221-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86712
* More profiler cleanup:Chad Horohoe2011-04-161-5/+3
| | | | | | | | | | | * Move autoloader up a little bit so the profiler classes can use it * Make Profiler into a singleton so it's lazy-constructed, $wgProfiler is now a configuration array (used 'visible' in ProfilerSimpleText as an example of other globals we can move into this array). If $wgProfiler is set to an object, it'll use that for back-compat * Maintenance: rather than setting up the profiler and then disabling it, just disable it from the start * Kill $wgProfiling -> now that ProfilerStub overrides profileIn() and profileOut(), it's not needed * dumpHTML needs some fixes still Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86228
* Removed StartProfiler.php from SVN control and added StartProfiler.sample ↵Aaron Schulz2009-05-071-0/+23
file. The sample file can be moved to the former name to set profiling. MW will fall back to ProfilerStub.php as usual if there is no StartProfiler.php. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/50316