Removed old SqlBagOStuff alias
[mediawiki.git] / StartProfiler.sample
blob4721a9dde3c6e93c9eb3dc7ed78fa904956b457c
1 <?php
3 /**
4  * To use a profiler, copy this file to StartProfiler.php and add:
5  *  $wgProfiler['class'] = 'ProfilerXhprof';
6  *
7  * For output, add:
8  *  $wgProfiler['output'] = array( 'text' );
9  *    'text' can be one (or more) of 'text' 'udp' or 'db'
10  *    'db' requires creating the profiling table, see patch-profiling.sql
11  *
12  * The 'text' output will be added to the output page in a comment approriate
13  * to the output's mime type. For a text/html page, this display can be
14  * changed to a preformatted text block by setting the 'visible' configuration
15  * flag:
16  *  $wgProfiler['visible'] = true;
17  *
18  * The 'db' output expects a database table that can be created by applying
19  * maintenance/archives/patch-profiling.sql to your database.
20  *
21  * For a rudimentary sampling profiler:
22  *   $wgProfiler['class'] = 'ProfilerXhprof';
23  *   $wgProfiler['output'] = array( 'db' );
24  *   $wgProfiler['sampling'] = 50; // one every 50 requests
25  * This will use ProfilerStub for non-sampled cases.
26  *
27  * For performance, the profiler is always disabled for CLI scripts
28  * as they could be long running and the data would accumulate. Use
29  * the --profiler parameter of maintenance scripts to override this.
30  */