<?php
/**
- * To use a profiler, copy this file to StartProfiler.php,
- * and add either:
- * $wgProfiler['class'] = 'ProfilerStandard';
- * or
+ * To use a profiler, copy this file to StartProfiler.php and add:
* $wgProfiler['class'] = 'ProfilerXhprof';
*
* For output, add:
* $wgProfiler['output'] = array( 'text' );
- * 'text' can be one (or more) of 'text' 'udp' or 'db'
+ * 'text' can be one (or more) of 'text' 'udp' 'db' or 'dump'
* 'db' requires creating the profiling table, see patch-profiling.sql
*
* The 'text' output will be added to the output page in a comment approriate
* $wgProfiler['visible'] = true;
*
* The 'db' output expects a database table that can be created by applying
- * maintenance/archives/patch-profiling.sql to your database. You can also
- * set $wgProfiler['perHost'] to true to store this data on a per-host basis.
+ * maintenance/archives/patch-profiling.sql to your database.
*
- * 'udp' also has additional parameters of 'udphost', 'udpport' and 'udpformat'
- * for the destination host, port and line format.
+ * The 'dump' output expects a $wgProfiler['outputDir'] telling it where to
+ * write dump files. The files produced are compatible with the XHProf gui.
*
* For a rudimentary sampling profiler:
- * $wgProfiler['class'] = 'ProfilerStandard';
+ * $wgProfiler['class'] = 'ProfilerXhprof';
* $wgProfiler['output'] = array( 'db' );
* $wgProfiler['sampling'] = 50; // one every 50 requests
* This will use ProfilerStub for non-sampled cases.