Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -800,6 +800,7 @@ |
801 | 801 | */ |
802 | 802 | function loadMessagesFile( $filename, $langcode = false ) { |
803 | 803 | global $wgLang, $wgContLang; |
| 804 | + wfProfileIn( __METHOD__ ); |
804 | 805 | $messages = $magicWords = false; |
805 | 806 | require( $filename ); |
806 | 807 | |
— | — | @@ -822,6 +823,7 @@ |
823 | 824 | global $wgContLang; |
824 | 825 | $wgContLang->addMagicWordsByLang( $magicWords ); |
825 | 826 | } |
| 827 | + wfProfileOut( __METHOD__ ); |
826 | 828 | } |
827 | 829 | |
828 | 830 | /** |
— | — | @@ -831,6 +833,7 @@ |
832 | 834 | * @param string $langcode Language code to process. |
833 | 835 | */ |
834 | 836 | function processMessagesArray( $messages, $langcode ) { |
| 837 | + wfProfileIn( __METHOD__ ); |
835 | 838 | $fallbackCode = $langcode; |
836 | 839 | $mergedMessages = array(); |
837 | 840 | do { |
— | — | @@ -842,6 +845,7 @@ |
843 | 846 | |
844 | 847 | if ( !empty($mergedMessages) ) |
845 | 848 | $this->addMessages( $mergedMessages, $langcode ); |
| 849 | + wfProfileOut( __METHOD__ ); |
846 | 850 | } |
847 | 851 | |
848 | 852 | public function figureMessage( $key ) { |