From: Aaron Schulz Date: Thu, 23 Feb 2012 23:00:38 +0000 (+0000) Subject: Improved profiling of a few functions a bit X-Git-Tag: 1.31.0-rc.0~24551 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3963a268b32b3ef85a7a2b887506d5e962b5cf79;p=lhc%2Fweb%2Fwiklou.git Improved profiling of a few functions a bit --- diff --git a/includes/filerepo/backend/FileBackend.php b/includes/filerepo/backend/FileBackend.php index 7e804b7d44..4c37ead4b7 100644 --- a/includes/filerepo/backend/FileBackend.php +++ b/includes/filerepo/backend/FileBackend.php @@ -1146,7 +1146,9 @@ abstract class FileBackendStore extends FileBackend { return $this->cache[$path]['stat']; } } + wfProfileIn( __METHOD__ . '-miss' ); $stat = $this->doGetFileStat( $params ); + wfProfileOut( __METHOD__ . '-miss' ); if ( is_array( $stat ) ) { // don't cache negatives $this->trimCache(); // limit memory $this->cache[$path]['stat'] = $stat; @@ -1190,7 +1192,9 @@ abstract class FileBackendStore extends FileBackend { wfProfileOut( __METHOD__ ); return $this->cache[$path]['sha1']; } + wfProfileIn( __METHOD__ . '-miss' ); $hash = $this->doGetFileSha1Base36( $params ); + wfProfileOut( __METHOD__ . '-miss' ); if ( $hash ) { // don't cache negatives $this->trimCache(); // limit memory $this->cache[$path]['sha1'] = $hash;