From: Domas Mituzas Date: Sun, 16 Jul 2006 08:16:58 +0000 (+0000) Subject: add profiling hooks at quite critical place (accounting parser usage by skin) X-Git-Tag: 1.31.0-rc.0~56224 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=3d09e823c02434f4194b2faccebd868ed68cb3a3;p=lhc%2Fweb%2Fwiklou.git add profiling hooks at quite critical place (accounting parser usage by skin) --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ad43c22d1c..78374cae38 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -289,10 +289,13 @@ class OutputPage { function addWikiTextTitle($text, &$title, $linestart) { global $wgParser; + $fname = 'OutputPage:addWikiTextTitle'; + wfProfileIn($fname); wfIncrStats('pcache_not_possible'); $parserOutput = $wgParser->parse( $text, $title, $this->mParserOptions, $linestart, true, $this->mRevisionId ); $this->addParserOutput( $parserOutput ); + wfProfileOut($fname); } function addParserOutputNoText( &$parserOutput ) {