From b7557bf809b9c4ce5348280b3c37183ca6742626 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 28 Nov 2004 04:05:05 +0000 Subject: [PATCH] Profiling points --- includes/Parser.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } } -- 2.20.1