From 3d09e823c02434f4194b2faccebd868ed68cb3a3 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sun, 16 Jul 2006 08:16:58 +0000 Subject: [PATCH] add profiling hooks at quite critical place (accounting parser usage by skin) --- includes/OutputPage.php | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.20.1