summaryrefslogtreecommitdiff
path: root/StartProfiler.php
blob: 8fc3ff887fc7efafbf58c69c3f53cb48b2ebdb36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );

/**
 * To use a profiler, delete the line above and add something like this:
 *
 *   require_once(  dirname(__FILE__).'/includes/Profiler.php' );
 *   $wgProfiler = new Profiler;
 *
 * Or for a sampling profiler:
 *   if ( !mt_rand( 0, 100 ) ) {
 *       require_once(  dirname(__FILE__).'/includes/Profiler.php' );
 *       $wgProfiler = new Profiler;
 *   } else {
 *       require_once(  dirname(__FILE__).'/includes/ProfilerStub.php' );
 *   }
 * 
 * Configuration of the profiler output can be done in LocalSettings.php
 */

?>