https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112259

Revision: 112259
Author:   aaron
Date:     2012-02-23 23:00:38 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
Improved profiling of a few functions a bit

Modified Paths:
--------------
    trunk/phase3/includes/filerepo/backend/FileBackend.php

Modified: trunk/phase3/includes/filerepo/backend/FileBackend.php
===================================================================
--- trunk/phase3/includes/filerepo/backend/FileBackend.php      2012-02-23 
22:58:41 UTC (rev 112258)
+++ trunk/phase3/includes/filerepo/backend/FileBackend.php      2012-02-23 
23:00:38 UTC (rev 112259)
@@ -1146,7 +1146,9 @@
                                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 @@
                        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;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to