StartProfiler.php 603 B

1234567891011121314151617181920212223
  1. <?php
  2. require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
  3. /**
  4. * To use a profiler, delete the line above and add something like this:
  5. *
  6. * require_once( dirname(__FILE__).'/includes/Profiler.php' );
  7. * $wgProfiler = new Profiler;
  8. *
  9. * Or for a sampling profiler:
  10. * if ( !mt_rand( 0, 100 ) ) {
  11. * require_once( dirname(__FILE__).'/includes/Profiler.php' );
  12. * $wgProfiler = new Profiler;
  13. * } else {
  14. * require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
  15. * }
  16. *
  17. * Configuration of the profiler output can be done in LocalSettings.php
  18. */