Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -3132,6 +3132,7 @@ |
3133 | 3133 | } |
3134 | 3134 | } |
3135 | 3135 | if ( $function ) { |
| 3136 | + wfProfileIn( __METHOD__ . '-pfunc-' . $function ); |
3136 | 3137 | list( $callback, $flags ) = $this->mFunctionHooks[$function]; |
3137 | 3138 | $initialArgs = array( &$this ); |
3138 | 3139 | $funcArgs = array( trim( substr( $part1, $colonPos + 1 ) ) ); |
— | — | @@ -3153,6 +3154,7 @@ |
3154 | 3155 | |
3155 | 3156 | # Workaround for PHP bug 35229 and similar |
3156 | 3157 | if ( !is_callable( $callback ) ) { |
| 3158 | + wfProfileOut( __METHOD__ . '-pfunc-' . $function ); |
3157 | 3159 | wfProfileOut( __METHOD__ . '-pfunc' ); |
3158 | 3160 | wfProfileOut( __METHOD__ ); |
3159 | 3161 | throw new MWException( "Tag hook for $function is not callable\n" ); |
— | — | @@ -3178,6 +3180,7 @@ |
3179 | 3181 | $text = $this->preprocessToDom( $text, $preprocessFlags ); |
3180 | 3182 | $isChildObj = true; |
3181 | 3183 | } |
| 3184 | + wfProfileOut( __METHOD__ . '-pfunc-' . $function ); |
3182 | 3185 | } |
3183 | 3186 | } |
3184 | 3187 | wfProfileOut( __METHOD__ . '-pfunc' ); |