summaryrefslogtreecommitdiff
path: root/StartProfiler.sample
blob: db5e0ff9e261adad18a34551a204b11aec254b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

/**
 * To use a profiler, copy this file to StartProfiler.php,
 * and add something like this:
 *
 *   $wgProfiler['class'] = 'Profiler';
 *
 * Or for a sampling profiler:
 *   if ( !mt_rand( 0, 100 ) ) {
 *       $wgProfiler['class'] = 'Profiler';
 *   } else {
 *       $wgProfiler['class'] = 'ProfilerStub';
 *   }
 *
 * Configuration of the profiler output can be done in LocalSettings.php
 */