sigh
authorRob Church <robchurch@users.mediawiki.org>
Sat, 7 Jul 2007 05:02:18 +0000 (05:02 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 7 Jul 2007 05:02:18 +0000 (05:02 +0000)
StartProfiler.php

index 1ffc54a..3fcf69e 100644 (file)
@@ -1,4 +1,22 @@
 <?php
 
-require_once( dirname(__FILE__).'/includes/Profiler.php' );
-$wgProfiler = new Profiler();
\ No newline at end of file
+require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
+
+/**
+ * To use a profiler, delete the line above and add something like this:
+ *
+ *   require_once(  dirname(__FILE__).'/includes/Profiler.php' );
+ *   $wgProfiler = new Profiler;
+ *
+ * Or for a sampling profiler:
+ *   if ( !mt_rand( 0, 100 ) ) {
+ *       require_once(  dirname(__FILE__).'/includes/Profiler.php' );
+ *       $wgProfiler = new Profiler;
+ *   } else {
+ *       require_once(  dirname(__FILE__).'/includes/ProfilerStub.php' );
+ *   }
+ * 
+ * Configuration of the profiler output can be done in LocalSettings.php
+ */
+
+