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

/**
 * To use a profiler, copy this file to StartProfiler.php,
 * and add either:
 *
 *   // Does not support the debugging toolbar
 *   // Stores profiling information in the database
 *   // Requires running maintenance/archives/patch-profiling.sql
 *   $wgProfiler['class'] = 'ProfilerSimpleDB'
 *
 * or:
 *
 *   // Supports the debugging toolbar
 *   // Does not store profiling information in the database
 *   $wgProfiler['class'] = 'ProfilerStandard';
 *
 * Or for a sampling profiler:
 *   if ( !mt_rand( 0, 100 ) ) {
 *       $wgProfiler['class'] = 'ProfilerSimpleDB';
 *   } else {
 *       $wgProfiler['class'] = 'ProfilerStub';
 *   }
 *
 * Configuration of the profiler output can be done in LocalSettings.php
 */