From: Brion Vibber Date: Sun, 28 Nov 2004 04:05:05 +0000 (+0000) Subject: Profiling points X-Git-Tag: 1.5.0alpha1~1209 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=b7557bf809b9c4ce5348280b3c37183ca6742626;p=lhc%2Fweb%2Fwiklou.git Profiling points --- diff --git a/includes/Parser.php b/includes/Parser.php index 8bd820be73..a8165d7bfd 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1823,6 +1823,8 @@ class Parser * @access private */ function variableSubstitution( $matches ) { + $fname = 'parser::variableSubstitution'; + wfProfileIn( $fname ); if ( !$this->mVariables ) { $this->initialiseVariables(); } @@ -1842,6 +1844,7 @@ class Parser } else { $text = $matches[0]; } + wfProfileOut( $fname ); return $text; } @@ -1883,6 +1886,8 @@ class Parser function braceSubstitution( $matches ) { global $wgLinkCache, $wgContLang; $fname = 'Parser::braceSubstitution'; + wfProfileIn( $fname ); + $found = false; $nowiki = false; $noparse = false; @@ -2096,6 +2101,7 @@ class Parser # Empties the template path $this->mTemplatePath = array(); if ( !$found ) { + wfProfileOut( $fname ); return $matches[0]; } else { # replace ==section headers== @@ -2130,8 +2136,10 @@ class Parser $this->mTemplatePath = array(); if ( !$found ) { + wfProfileOut( $fname ); return $matches[0]; } else { + wfProfileOut( $fname ); return $text; } }