r97504 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97503‎ | r97504 | r97505 >
Date:15:18, 19 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r97502, 1.18-i[sz]e StartProfiler.php
Modified paths:
  • /branches/wmf/1.18wmf1/StartProfiler.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/StartProfiler.php
@@ -13,26 +13,26 @@
1414 ( !($rand % 10) && $host == 'ja.wikipedia.org' )
1515 ) {*/
1616 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' );
1818 $wgProfiler = new ProfilerSimpleUDP;
1919 $wgProfiler->setProfileID( 'bigpage' );
2020 } elseif (@defined($_REQUEST['forceprofile'])) {
21 - require_once( dirname(__FILE__).'/includes/ProfilerSimpleText.php' );
 21+ require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleText.php' );
2222 $wgProfiler = new ProfilerSimpleText;
2323 $wgProfiler->setProfileID( 'forced' );
2424 } elseif (@defined($_REQUEST['forcetrace'])) {
25 - require_once( dirname(__FILE__).'/includes/ProfilerSimpleTrace.php' );
 25+ require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleTrace.php' );
2626 $wgProfiler = new ProfilerSimpleTrace;
2727 } 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' );
2929 $wgProfiler = new ProfilerSimpleUDP;
3030 $wgProfiler->setProfileID( 'thumb' );
3131 } elseif ( $host == 'test2.wikipedia.org' ) {
32 - require_once( dirname(__FILE__).'/includes/ProfilerSimpleUDP.php' );
 32+ require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
3333 $wgProfiler = new ProfilerSimpleUDP;
3434 $wgProfiler->setProfileID( 'test2' );
3535 } elseif ( !( $rand % 50 ) ) {
36 - require_once( dirname(__FILE__).'/includes/ProfilerSimpleUDP.php' );
 36+ require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
3737 $wgProfiler = new ProfilerSimpleUDP;
3838 /*
3939 if ( $host == 'en.wikipedia.org' ) {
@@ -54,10 +54,10 @@
5555 #$wgProfiler->setMinimum(5 /* seconds */);
5656 }
5757 elseif ( defined( 'MW_FORCE_PROFILE' ) ) {
58 - require_once( dirname(__FILE__).'/includes/Profiler.php' );
 58+ require_once( dirname(__FILE__).'/includes/profiler/Profiler.php' );
5959 $wgProfiler = new Profiler;
6060 } else {
61 - require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
 61+ require_once( dirname(__FILE__).'/includes/profiler/ProfilerStub.php' );
6262 }
6363
6464

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97502Creating new WMF branchreedy15:15, 19 September 2011

Status & tagging log