r23830 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23829‎ | r23830 | r23831 >
Date:05:02, 7 July 2007
Author:robchurch
Status:old
Tags:
Comment:
sigh
Modified paths:
  • /trunk/phase3/StartProfiler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/StartProfiler.php
@@ -1,4 +1,22 @@
22 <?php
33
4 -require_once( dirname(__FILE__).'/includes/Profiler.php' );
5 -$wgProfiler = new Profiler();
\ No newline at end of file
 4+require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
 5+
 6+/**
 7+ * To use a profiler, delete the line above and add something like this:
 8+ *
 9+ * require_once( dirname(__FILE__).'/includes/Profiler.php' );
 10+ * $wgProfiler = new Profiler;
 11+ *
 12+ * Or for a sampling profiler:
 13+ * if ( !mt_rand( 0, 100 ) ) {
 14+ * require_once( dirname(__FILE__).'/includes/Profiler.php' );
 15+ * $wgProfiler = new Profiler;
 16+ * } else {
 17+ * require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
 18+ * }
 19+ *
 20+ * Configuration of the profiler output can be done in LocalSettings.php
 21+ */
 22+
 23+

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log