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