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