r112377 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112376‎ | r112377 | r112378 >
Date:00:43, 25 February 2012
Author:aaron
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1/includes/filerepo/backend/FileBackend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/includes/filerepo/backend/FileBackend.php
@@ -1131,7 +1131,9 @@
11321132 return $this->cache[$path]['stat'];
11331133 }
11341134 }
 1135+ wfProfileIn( __METHOD__ . '-miss' );
11351136 $stat = $this->doGetFileStat( $params );
 1137+ wfProfileOut( __METHOD__ . '-miss' );
11361138 if ( is_array( $stat ) ) { // don't cache negatives
11371139 $this->trimCache(); // limit memory
11381140 $this->cache[$path]['stat'] = $stat;
@@ -1173,7 +1175,9 @@
11741176 wfProfileOut( __METHOD__ );
11751177 return $this->cache[$path]['sha1'];
11761178 }
 1179+ wfProfileIn( __METHOD__ . '-miss' );
11771180 $hash = $this->doGetFileSha1Base36( $params );
 1181+ wfProfileOut( __METHOD__ . '-miss' );
11781182 if ( $hash ) { // don't cache negatives
11791183 $this->trimCache(); // limit memory
11801184 $this->cache[$path]['sha1'] = $hash;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112259Improved profiling of a few functions a bitaaron23:00, 23 February 2012

Status & tagging log