From: Reedy Date: Tue, 17 Jul 2012 21:01:31 +0000 (+0100) Subject: Add wfProfileIn/wfProfileOut calls to InfoAction::pageCountInfo() X-Git-Tag: 1.31.0-rc.0~23024 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=93867817063fd90be74dcdc5cc43e53f03015a55;p=lhc%2Fweb%2Fwiklou.git Add wfProfileIn/wfProfileOut calls to InfoAction::pageCountInfo() Change-Id: Ice4eff38253b189a60885be36dadd2a3cf5d6297 --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index b74996cf97..89e2cfeede 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -107,6 +107,7 @@ class InfoAction extends FormlessAction { * @return mixed array or boolean false */ public static function pageCountInfo( $title ) { + wfProfileIn( __METHOD__ ); $id = $title->getArticleID(); $dbr = wfGetDB( DB_SLAVE ); @@ -147,6 +148,7 @@ class InfoAction extends FormlessAction { $result['views'] = $views; } + wfProfileOut( __METHOD__ ); return $result; } }