From: Aaron Schulz Date: Mon, 18 Aug 2008 07:59:37 +0000 (+0000) Subject: add profile calls X-Git-Tag: 1.31.0-rc.0~45841 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4cdee685b91e71e95404719aebb9b4fdf9effc80;p=lhc%2Fweb%2Fwiklou.git add profile calls --- diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index a4a2674064..6ba48e878b 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -830,6 +830,7 @@ class PPFrame_DOM implements PPFrame { if ( is_string( $root ) ) { return $root; } + wfProfileIn( __METHOD__ ); if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->mMaxPPNodeCount ) { @@ -1005,6 +1006,7 @@ class PPFrame_DOM implements PPFrame { $newIterator = $contextNode->childNodes; } } else { + wfProfileOut( __METHOD__ ); throw new MWException( __METHOD__.': Invalid parameter type' ); } @@ -1028,6 +1030,7 @@ class PPFrame_DOM implements PPFrame { } } --$depth; + wfProfileOut( __METHOD__ ); return $outStack[0]; }