X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=StartProfiler.sample;h=d9b52884119809412d4e80ccb84c648075f891fe;hb=a4ce42691c1ad333e99061f708e9f7eb901506b3;hp=ba8fe8bbacc6c12f37593b1e2afc9d562ecff756;hpb=4728e613832a731db7fcb1b5abf841dc0e805ab1;p=lhc%2Fweb%2Fwiklou.git diff --git a/StartProfiler.sample b/StartProfiler.sample index ba8fe8bbac..d9b5288411 100644 --- a/StartProfiler.sample +++ b/StartProfiler.sample @@ -2,18 +2,25 @@ /** * To use a profiler, copy this file to StartProfiler.php, - * and add something like this: + * and add either: * - * $wgProfiler['class'] = 'Profiler'; + * // 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'] = 'Profiler'; + * $wgProfiler['class'] = 'ProfilerSimpleDB'; * } else { * $wgProfiler['class'] = 'ProfilerStub'; * } * * Configuration of the profiler output can be done in LocalSettings.php */ - -