X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProfilerSimpleText.php;h=9252e302289116c5e504d183b458a9f4bee08fdb;hb=7a7cf1a2f9468e0ac27dcd078da4a53e10cbe017;hp=af29f199ad8ffdccf4cb92525d2cdec899daf3f2;hpb=79d5225c0e864482269e2315f47b899697681e52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProfilerSimpleText.php b/includes/ProfilerSimpleText.php index af29f199ad..9252e30228 100644 --- a/includes/ProfilerSimpleText.php +++ b/includes/ProfilerSimpleText.php @@ -1,16 +1,25 @@ visible=true; - -*/ -require_once(dirname(__FILE__).'/ProfilerSimple.php'); +/** + * The least sophisticated profiler output class possible, view your source! :) + * + * Put it to StartProfiler.php like this: + * + * require_once( dirname( __FILE__ ) . '/includes/ProfilerSimpleText.php' ); + * $wgProfiler = new ProfilerSimpleText; + * $wgProfiler->visible=true; + * + * @ingroup Profiler + */ class ProfilerSimpleText extends ProfilerSimple { public $visible=false; /* Show as
 or \n";
 	}
+
 	/* dense is good */
 	static function sort($a,$b) { return $a['real']<$b['real']; /* sort descending by time elapsed */ }
 	static function format($item,$key) { printf("%3.6f %6d - %s\n",$item['real'],$item['count'], $key); }