r93683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93682‎ | r93683 | r93684 >
Date:23:28, 1 August 2011
Author:reedy
Status:resolved
Tags:
Comment:
Add Profiling to trunk from r93681
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1860,6 +1860,7 @@
18611861 global $wgEnableParserCache, $wgUser;
18621862 $user = is_null( $user ) ? $wgUser : $user;
18631863
 1864+ wfProfileIn( __METHOD__ );
18641865 // Should the parser cache be used?
18651866 $useParserCache = $wgEnableParserCache &&
18661867 $user->getStubThreshold() == 0 &&
@@ -1875,6 +1876,7 @@
18761877 if ( $useParserCache ) {
18771878 $parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() );
18781879 if ( $parserOutput !== false ) {
 1880+ wfProfileOut( __METHOD__ );
18791881 return $parserOutput;
18801882 }
18811883 }
@@ -1890,6 +1892,7 @@
18911893 $text = $rev->getText();
18921894 }
18931895
 1896+ wfProfileOut( __METHOD__ );
18941897 return $this->getOutputFromWikitext( $text, $useParserCache );
18951898 }
18961899

Follow-up revisions

RevisionCommit summaryAuthorDate
r93851r93683 missed return in line 1890platonides20:23, 3 August 2011
r96553MFT r93682, r93683, r93851reedy11:08, 8 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93681Commit live hackreedy23:26, 1 August 2011

Status & tagging log