Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -798,8 +798,10 @@ |
799 | 799 | } |
800 | 800 | |
801 | 801 | public static function logMessages() { |
| 802 | + wfProfileIn( __METHOD__ ); |
802 | 803 | global $wgAdaptiveMessageCache; |
803 | 804 | if ( !$wgAdaptiveMessageCache || !self::$instance instanceof MessageCache ) { |
| 805 | + wfProfileOut( __METHOD__ ); |
804 | 806 | return; |
805 | 807 | } |
806 | 808 | |
— | — | @@ -832,13 +834,16 @@ |
833 | 835 | } |
834 | 836 | |
835 | 837 | $cache->set( $cachekey, $data ); |
| 838 | + wfProfileOut( __METHOD__ ); |
836 | 839 | } |
837 | 840 | |
838 | 841 | public function getMostUsedMessages() { |
| 842 | + wfProfileIn( __METHOD__ ); |
839 | 843 | $cachekey = wfMemcKey( 'message-profiling' ); |
840 | 844 | $cache = wfGetCache( CACHE_DB ); |
841 | 845 | $data = $cache->get( $cachekey ); |
842 | 846 | if ( !$data ) { |
| 847 | + wfProfileOut( __METHOD__ ); |
843 | 848 | return array(); |
844 | 849 | } |
845 | 850 | |
— | — | @@ -861,6 +866,7 @@ |
862 | 867 | } |
863 | 868 | } |
864 | 869 | |
| 870 | + wfProfileOut( __METHOD__ ); |
865 | 871 | return array_keys( $list ); |
866 | 872 | } |
867 | 873 | |