From 962c4452af407aa1da22fa491ec1b12cda85fddb Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 18 Jun 2011 15:14:59 +0000 Subject: [PATCH] wfProfileIn/wfProfileOut to the whole main() --- includes/Wiki.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/Wiki.php b/includes/Wiki.php index 9c6c1dacbd..dafae673fb 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -544,6 +544,8 @@ class MediaWiki { function main() { global $wgUseFileCache, $wgTitle, $wgUseAjax; + wfProfileIn( __METHOD__ ); + # Set title from request parameters $wgTitle = $this->getTitle(); $action = $this->context->getRequest()->getVal( 'action', 'view' ); @@ -552,6 +554,7 @@ class MediaWiki { if ( $wgUseAjax && $action == 'ajax' ) { $dispatcher = new AjaxDispatcher(); $dispatcher->performAction(); + wfProfileOut( __METHOD__ ); return; } @@ -573,6 +576,7 @@ class MediaWiki { # Tell OutputPage that output is taken care of $this->context->getOutput()->disable(); wfProfileOut( 'main-try-filecache' ); + wfProfileOut( __METHOD__ ); return; } } @@ -580,5 +584,7 @@ class MediaWiki { } $this->performRequest(); + + wfProfileOut( __METHOD__ ); } } -- 2.20.1