From 4cdee685b91e71e95404719aebb9b4fdf9effc80 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 18 Aug 2008 07:59:37 +0000 Subject: [PATCH] add profile calls --- includes/parser/Preprocessor_DOM.php | 3 +++ 1 file changed, 3 insertions(+) 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]; } -- 2.20.1