From 40aa62e9dc41f9a6cb3a7416810ceeb0bb1d9a3c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 1 Aug 2011 23:28:16 +0000 Subject: [PATCH] Add Profiling to trunk from r93681 --- includes/Article.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Article.php b/includes/Article.php index 9bf3f05838..db7faac435 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1860,6 +1860,7 @@ class Article extends Page { global $wgEnableParserCache, $wgUser; $user = is_null( $user ) ? $wgUser : $user; + wfProfileIn( __METHOD__ ); // Should the parser cache be used? $useParserCache = $wgEnableParserCache && $user->getStubThreshold() == 0 && @@ -1875,6 +1876,7 @@ class Article extends Page { if ( $useParserCache ) { $parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() ); if ( $parserOutput !== false ) { + wfProfileOut( __METHOD__ ); return $parserOutput; } } @@ -1890,6 +1892,7 @@ class Article extends Page { $text = $rev->getText(); } + wfProfileOut( __METHOD__ ); return $this->getOutputFromWikitext( $text, $useParserCache ); } -- 2.20.1