r39575 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39574‎ | r39575 | r39576 >
Date:07:59, 18 August 2008
Author:aaron
Status:old
Tags:
Comment:
add profile calls
Modified paths:
  • /trunk/phase3/includes/parser/Preprocessor_DOM.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Preprocessor_DOM.php
@@ -830,6 +830,7 @@
831831 if ( is_string( $root ) ) {
832832 return $root;
833833 }
 834+ wfProfileIn( __METHOD__ );
834835
835836 if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->mMaxPPNodeCount )
836837 {
@@ -1005,6 +1006,7 @@
10061007 $newIterator = $contextNode->childNodes;
10071008 }
10081009 } else {
 1010+ wfProfileOut( __METHOD__ );
10091011 throw new MWException( __METHOD__.': Invalid parameter type' );
10101012 }
10111013
@@ -1028,6 +1030,7 @@
10291031 }
10301032 }
10311033 --$depth;
 1034+ wfProfileOut( __METHOD__ );
10321035 return $outStack[0];
10331036 }
10341037

Status & tagging log