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