From: Platonides Date: Sat, 18 Jun 2011 15:14:59 +0000 (+0000) Subject: wfProfileIn/wfProfileOut to the whole main() X-Git-Tag: 1.31.0-rc.0~29441 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=962c4452af407aa1da22fa491ec1b12cda85fddb;p=lhc%2Fweb%2Fwiklou.git wfProfileIn/wfProfileOut to the whole main() --- 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__ ); } }