r85241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85240‎ | r85241 | r85242 >
Date:10:52, 3 April 2011
Author:siebrand
Status:ok
Tags:
Comment:
Update profiling.
Modified paths:
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MessageCache.php
@@ -798,8 +798,10 @@
799799 }
800800
801801 public static function logMessages() {
 802+ wfProfileIn( __METHOD__ );
802803 global $wgAdaptiveMessageCache;
803804 if ( !$wgAdaptiveMessageCache || !self::$instance instanceof MessageCache ) {
 805+ wfProfileOut( __METHOD__ );
804806 return;
805807 }
806808
@@ -832,13 +834,16 @@
833835 }
834836
835837 $cache->set( $cachekey, $data );
 838+ wfProfileOut( __METHOD__ );
836839 }
837840
838841 public function getMostUsedMessages() {
 842+ wfProfileIn( __METHOD__ );
839843 $cachekey = wfMemcKey( 'message-profiling' );
840844 $cache = wfGetCache( CACHE_DB );
841845 $data = $cache->get( $cachekey );
842846 if ( !$data ) {
 847+ wfProfileOut( __METHOD__ );
843848 return array();
844849 }
845850
@@ -861,6 +866,7 @@
862867 }
863868 }
864869
 870+ wfProfileOut( __METHOD__ );
865871 return array_keys( $list );
866872 }
867873

Status & tagging log