On 28/12/11 13:53, Daniel Friesen wrote:
The typical thing to go into StartProfiler.php for someone who wants to use it is: $wgProfiler['class'] = 'Profiler';
;) ie: It's pure config, it's not even php code.
That's because the actual starting of the profiler happens after StartProfiler.php finishes but before LocalSettings.php starts. When you said there was no extra value to StartProfiler.php, I thought you were imagining some system where the profiler would be started at the top of LocalSettings.php
Running LocalSettings.php itself is often slow, especially the extension setup files. So it's important that the profiler is running at this time.
-- Tim Starling