From: Siebrand Mazeland Date: Sun, 3 Apr 2011 10:52:54 +0000 (+0000) Subject: Update profiling. X-Git-Tag: 1.31.0-rc.0~31060 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b774a4beb4f6c5156023dd01c9073033a01b63df;p=lhc%2Fweb%2Fwiklou.git Update profiling. --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index d66e710c90..d907a78714 100644 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -798,8 +798,10 @@ class MessageCache { } public static function logMessages() { + wfProfileIn( __METHOD__ ); global $wgAdaptiveMessageCache; if ( !$wgAdaptiveMessageCache || !self::$instance instanceof MessageCache ) { + wfProfileOut( __METHOD__ ); return; } @@ -832,13 +834,16 @@ class MessageCache { } $cache->set( $cachekey, $data ); + wfProfileOut( __METHOD__ ); } public function getMostUsedMessages() { + wfProfileIn( __METHOD__ ); $cachekey = wfMemcKey( 'message-profiling' ); $cache = wfGetCache( CACHE_DB ); $data = $cache->get( $cachekey ); if ( !$data ) { + wfProfileOut( __METHOD__ ); return array(); } @@ -861,6 +866,7 @@ class MessageCache { } } + wfProfileOut( __METHOD__ ); return array_keys( $list ); }