From: Tim Starling Date: Sat, 5 Jun 2004 04:51:24 +0000 (+0000) Subject: More profiling sections X-Git-Tag: 1.5.0alpha1~3031 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=2650e923615dbabf7019b1369677268a4971a318;p=lhc%2Fweb%2Fwiklou.git More profiling sections --- diff --git a/includes/Parser.php b/includes/Parser.php index a22abdffe9..16ec4c6455 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -627,22 +627,29 @@ class Parser /* private */ function doHeadings( $text ) { + $fname = "Parser::doHeadings"; + wfProfileIn( $fname ); for ( $i = 6; $i >= 1; --$i ) { $h = substr( "======", 0, $i ); $text = preg_replace( "/^{$h}(.+){$h}(\\s|$)/m", "\\1\\2", $text ); } + wfProfileOut( $fname ); return $text; } /* private */ function doAllQuotes( $text ) { + $fname = "Parser::doAllQuotes"; + wfProfileIn( $fname ); $outtext = ""; $lines = explode( "\n", $text ); foreach ( $lines as $line ) { $outtext .= $this->doQuotes ( "", $line, "" ) . "\n"; } - return substr($outtext, 0,-1); + $outtext = substr($outtext, 0,-1); + wfProfileOut( $fname ); + return $outtext; } /* private */ function doQuotes( $pre, $text, $mode )