wiki.techinc.nl/StartProfiler.sample
Matthew Flaschen a838e96837 Profiling: Fix StartProfiler.sample, link in docs/scripts.txt
Note two options in StartProfiler.sample, since only one of them
supports the toolbar

Change-Id: Ie8bd7febf749de8a5d32cbe87ba7733ee135bdc9
2014-07-07 19:05:31 -04:00

26 lines
734 B
Text

<?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
*/