}
public static function logMessages() {
+ wfProfileIn( __METHOD__ );
global $wgAdaptiveMessageCache;
if ( !$wgAdaptiveMessageCache || !self::$instance instanceof MessageCache ) {
+ wfProfileOut( __METHOD__ );
return;
}
}
$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();
}
}
}
+ wfProfileOut( __METHOD__ );
return array_keys( $list );
}