Introduced Maintenance::getDB() and corresponding setDB() to control externally what...
[mediawiki.git] / StartProfiler.sample
blobf55b4d6aaf1c6f178a7a218a1c14bd39574105ae
1 <?php
3 require_once( dirname( __FILE__ ) . '/includes/profiler/ProfilerStub.php' );
5 /**
6  * To use a profiler, copy this file to StartProfiler.php,
7  * delete the PHP line above, and add something like this:
8  *
9  *   $wgProfiler['class'] = 'Profiler';
10  *
11  * Or for a sampling profiler:
12  *   if ( !mt_rand( 0, 100 ) ) {
13  *       $wgProfiler['class'] = 'Profiler';
14  *   } else {
15  *       $wgProfiler['class'] = 'ProfilerStub';
16  *   }
17  * 
18  * Configuration of the profiler output can be done in LocalSettings.php
19  */