Index: branches/wmf/1.18wmf1/StartProfiler.php |
— | — | @@ -14,26 +14,26 @@ |
15 | 15 | ) {*/ |
16 | 16 | if ( @$_SERVER['REQUEST_URI'] == '/w/index.php?title=United_States&action=submit' ) { |
17 | 17 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' ); |
18 | | - $wgProfiler = new ProfilerSimpleUDP; |
| 18 | + $wgProfiler = new ProfilerSimpleUDP( array() ); |
19 | 19 | $wgProfiler->setProfileID( 'bigpage' ); |
20 | 20 | } elseif (@defined($_REQUEST['forceprofile'])) { |
21 | 21 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleText.php' ); |
22 | | - $wgProfiler = new ProfilerSimpleText; |
| 22 | + $wgProfiler = new ProfilerSimpleText( array() ); |
23 | 23 | $wgProfiler->setProfileID( 'forced' ); |
24 | 24 | } elseif (@defined($_REQUEST['forcetrace'])) { |
25 | 25 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleTrace.php' ); |
26 | | - $wgProfiler = new ProfilerSimpleTrace; |
| 26 | + $wgProfiler = new ProfilerSimpleTrace( array() ); |
27 | 27 | } elseif ( strpos( @$_SERVER['REQUEST_URI'], '/w/thumb.php' ) !== false ) { |
28 | 28 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' ); |
29 | | - $wgProfiler = new ProfilerSimpleUDP; |
| 29 | + $wgProfiler = new ProfilerSimpleUDP( array() ); |
30 | 30 | $wgProfiler->setProfileID( 'thumb' ); |
31 | 31 | } elseif ( $host == 'test2.wikipedia.org' ) { |
32 | 32 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' ); |
33 | | - $wgProfiler = new ProfilerSimpleUDP; |
| 33 | + $wgProfiler = new ProfilerSimpleUDP( array() ); |
34 | 34 | $wgProfiler->setProfileID( 'test2' ); |
35 | 35 | } elseif ( !( $rand % 50 ) ) { |
36 | 36 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' ); |
37 | | - $wgProfiler = new ProfilerSimpleUDP; |
| 37 | + $wgProfiler = new ProfilerSimpleUDP( array() ); |
38 | 38 | /* |
39 | 39 | if ( $host == 'en.wikipedia.org' ) { |
40 | 40 | $wgProfiler->setProfileID( 'enwiki' ); |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } |
57 | 57 | elseif ( defined( 'MW_FORCE_PROFILE' ) ) { |
58 | 58 | require_once( dirname(__FILE__).'/includes/profiler/Profiler.php' ); |
59 | | - $wgProfiler = new Profiler; |
| 59 | + $wgProfiler = new Profiler( array() ); |
60 | 60 | } else { |
61 | 61 | require_once( dirname(__FILE__).'/includes/profiler/ProfilerStub.php' ); |
62 | 62 | } |