From df41d898a7e80c34a2cf79ec756b05547cc61910 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 3 Jun 2009 06:28:19 +0000 Subject: [PATCH] Profiling for CPF::gender() --- includes/parser/CoreParserFunctions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index e6b613cee0..308a4e8c44 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -202,6 +202,7 @@ class CoreParserFunctions { } static function gender( $parser, $user ) { + wfProfileIn( __METHOD__ ); $forms = array_slice( func_get_args(), 2); // default @@ -221,7 +222,9 @@ class CoreParserFunctions { global $wgUser; $gender = $wgUser->getOption( 'gender' ); } - return $parser->getFunctionLang()->gender( $gender, $forms ); + $ret = $parser->getFunctionLang()->gender( $gender, $forms ); + wfProfileOut( __METHOD__ ); + return $ret; } static function plural( $parser, $text = '') { $forms = array_slice( func_get_args(), 2); -- 2.20.1