add profiling hooks at quite critical place (accounting parser usage by skin)
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 16 Jul 2006 08:16:58 +0000 (08:16 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 16 Jul 2006 08:16:58 +0000 (08:16 +0000)
includes/OutputPage.php

index ad43c22..78374ca 100644 (file)
@@ -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 ) {