Add wfProfileIn/wfProfileOut calls to InfoAction::pageCountInfo()
authorReedy <reedy@wikimedia.org>
Tue, 17 Jul 2012 21:01:31 +0000 (22:01 +0100)
committerReedy <reedy@wikimedia.org>
Tue, 17 Jul 2012 21:50:39 +0000 (22:50 +0100)
Change-Id: Ice4eff38253b189a60885be36dadd2a3cf5d6297

includes/actions/InfoAction.php

index b74996c..89e2cfe 100644 (file)
@@ -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;
        }
 }