add profile calls
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 18 Aug 2008 07:59:37 +0000 (07:59 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 18 Aug 2008 07:59:37 +0000 (07:59 +0000)
includes/parser/Preprocessor_DOM.php

index a4a2674..6ba48e8 100644 (file)
@@ -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];
        }