From: Tim Starling Date: Tue, 23 Aug 2005 16:48:39 +0000 (+0000) Subject: profiling X-Git-Tag: 1.6.0~1835 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=a1bd33dbc58f3c00801c756ddf1d7deab5d80936;p=lhc%2Fweb%2Fwiklou.git profiling --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ebb0b5cae8..43319bdb2d 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -224,6 +224,8 @@ class SpecialPage */ function executePath( &$title, $including = false ) { global $wgSpecialPages, $wgOut, $wgTitle; + $fname = 'SpecialPage::executePath'; + wfProfileIn( $fname ); $bits = split( "/", $title->getDBkey(), 2 ); $name = $bits[0]; @@ -236,6 +238,7 @@ class SpecialPage $page = SpecialPage::getPage( $name ); if ( is_null( $page ) ) { if ( $including ) { + wfProfileOut( $fname ); return false; } else { $redir = SpecialPage::getRedirect( $name ); @@ -254,6 +257,7 @@ class SpecialPage } } else { if ( $including && !$page->includable() ) { + wfProfileOut( $fname ); return false; } if($par !== NULL) { @@ -263,9 +267,13 @@ class SpecialPage } $page->including( $including ); + $profName = 'Special:' . $page->getName(); + wfProfileIn( $profName ); $page->execute( $par ); + wfProfileOut( $profName ); $retVal = true; } + wfProfileOut( $fname ); return $retVal; }