* (bug 20468) User::invalidateCache throws 1205: Lock wait timeout exceeded
[lhc/web/wiklou.git] / StartProfiler.sample
index f91aeb9..f55b4d6 100644 (file)
@@ -1,20 +1,18 @@
 <?php
 
-require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
+require_once( dirname( __FILE__ ) . '/includes/profiler/ProfilerStub.php' );
 
 /**
  * To use a profiler, copy this file to StartProfiler.php,
  * delete the PHP line above, and add something like this:
  *
- *   require_once(  dirname(__FILE__).'/includes/Profiler.php' );
- *   $wgProfiler = new Profiler;
+ *   $wgProfiler['class'] = 'Profiler';
  *
  * Or for a sampling profiler:
  *   if ( !mt_rand( 0, 100 ) ) {
- *       require_once(  dirname(__FILE__).'/includes/Profiler.php' );
- *       $wgProfiler = new Profiler;
+ *       $wgProfiler['class'] = 'Profiler';
  *   } else {
- *       require_once(  dirname(__FILE__).'/includes/ProfilerStub.php' );
+ *       $wgProfiler['class'] = 'ProfilerStub';
  *   }
  * 
  * Configuration of the profiler output can be done in LocalSettings.php