r83990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83989‎ | r83990 | r83991 >
Date:02:27, 15 March 2011
Author:tstarling
Status:ok
Tags:
Comment:
aggregated profiling
Modified paths:
  • /branches/wmf/1.17wmf1/StartProfiler.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/StartProfiler.php
@@ -27,9 +27,14 @@
2828 require_once( dirname(__FILE__).'/includes/ProfilerSimpleUDP.php' );
2929 $wgProfiler = new ProfilerSimpleUDP;
3030 $wgProfiler->setProfileID( 'thumb' );
 31+} elseif ( $host == 'test2.wikipedia.org' ) {
 32+ require_once( dirname(__FILE__).'/includes/ProfilerSimpleUDP.php' );
 33+ $wgProfiler = new ProfilerSimpleUDP;
 34+ $wgProfiler->setProfileID( 'test2' );
3135 } elseif ( !( $rand % 50 ) ) {
3236 require_once( dirname(__FILE__).'/includes/ProfilerSimpleUDP.php' );
3337 $wgProfiler = new ProfilerSimpleUDP;
 38+ /*
3439 if ( $host == 'en.wikipedia.org' ) {
3540 $wgProfiler->setProfileID( 'enwiki' );
3641 } elseif ( $host == 'de.wikipedia.org' ) {
@@ -40,8 +45,12 @@
4146 $wgProfiler->setProfileID( 'flaggedrevs' );
4247 } else {
4348 $wgProfiler->setProfileID( 'others' );
 49+ }*/
 50+ if ( php_sapi_name() == 'cli' ) {
 51+ $wgProfiler->setProfileID( 'cli' );
 52+ } else {
 53+ $wgProfiler->setProfileID( 'all' );
4454 }
45 - #$wgProfiler->setProfileID( 'all' );
4655 #$wgProfiler->setMinimum(5 /* seconds */);
4756 }
4857 elseif ( defined( 'MW_FORCE_PROFILE' ) ) {

Status & tagging log