From 2650e923615dbabf7019b1369677268a4971a318 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 5 Jun 2004 04:51:24 +0000 Subject: [PATCH] More profiling sections --- includes/Parser.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ) -- 2.20.1