From 3963a268b32b3ef85a7a2b887506d5e962b5cf79 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 23 Feb 2012 23:00:38 +0000 Subject: [PATCH] Improved profiling of a few functions a bit --- includes/filerepo/backend/FileBackend.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1