Index: trunk/extensions/Babel/BabelStatic.class.php |
— | — | @@ -15,6 +15,8 @@ |
16 | 16 | */ |
17 | 17 | public static function Setup() { |
18 | 18 | |
| 19 | + wfProfileIn( __METHOD__ ); |
| 20 | + |
19 | 21 | /* Register the hook within the parser object. |
20 | 22 | */ |
21 | 23 | global $wgParser; |
— | — | @@ -25,6 +27,8 @@ |
26 | 28 | */ |
27 | 29 | return true; |
28 | 30 | |
| 31 | + wfProfileOut( __METHOD__ ); |
| 32 | + |
29 | 33 | } |
30 | 34 | |
31 | 35 | /** |
— | — | @@ -37,6 +41,8 @@ |
38 | 42 | */ |
39 | 43 | public static function Magic( array $magicWords, $langCode ) { |
40 | 44 | |
| 45 | + wfProfileIn( __METHOD__ ); |
| 46 | + |
41 | 47 | /* Register the magic word, maybe one day this could be localised by adding |
42 | 48 | * synonyms into the array -- but there is currently no simple way of doing |
43 | 49 | * that given the current way of localisation. The first element is set to |
— | — | @@ -49,6 +55,8 @@ |
50 | 56 | */ |
51 | 57 | return true; |
52 | 58 | |
| 59 | + wfProfileOut( __METHOD__ ); |
| 60 | + |
53 | 61 | } |
54 | 62 | |
55 | 63 | /** |
— | — | @@ -59,6 +67,8 @@ |
60 | 68 | */ |
61 | 69 | public static function Render( $parser ) { |
62 | 70 | |
| 71 | + wfProfileIn( __METHOD__ ); |
| 72 | + |
63 | 73 | /* Get the location of the language codes file. |
64 | 74 | */ |
65 | 75 | global $wgLanguageCodesFiles; |
— | — | @@ -83,6 +93,8 @@ |
84 | 94 | */ |
85 | 95 | return call_user_func_array( array( $wgBabel, 'render' ), $args ); |
86 | 96 | |
| 97 | + wfProfileOut( __METHOD__ ); |
| 98 | + |
87 | 99 | } |
88 | 100 | |
89 | 101 | } |
\ No newline at end of file |