r104520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104519‎ | r104520 | r104521 >
Date:00:34, 29 November 2011
Author:preilly
Status:ok
Tags:
Comment:
add profiling calls to new methods
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -87,7 +87,7 @@
8888 }
8989
9090 class ExtMobileFrontend {
91 - const VERSION = '0.5.79';
 91+ const VERSION = '0.5.80';
9292
9393 /**
9494 * @var DOMDocument
@@ -1088,6 +1088,7 @@
10891089 * @return DomElement
10901090 */
10911091 public function renderLogin() {
 1092+ wfProfileIn( __METHOD__ );
10921093 $username = self::$messages['mobile-frontend-username'];
10931094 $password = self::$messages['mobile-frontend-password'];
10941095 $login = self::$messages['mobile-frontend-login'];
@@ -1147,6 +1148,7 @@
11481149 Html::closeElement( 'table' ) .
11491150 Html::input( 'wpLoginToken', self::$wsLoginToken, 'hidden' ) .
11501151 Html::closeElement( 'form' );
 1152+ wfProfileOut( __METHOD__ );
11511153 return $this->getDomDocumentNodeByTagName( $form, 'form' );
11521154 }
11531155
@@ -1156,6 +1158,7 @@
11571159 * @return DomElement
11581160 */
11591161 private function getDomDocumentNodeByTagName( $html, $tagName ) {
 1162+ wfProfileIn( __METHOD__ );
11601163 libxml_use_internal_errors( true );
11611164 $dom = new DOMDocument();
11621165 $dom->loadHTML( $html );
@@ -1164,6 +1167,7 @@
11651168 $dom->strictErrorChecking = false;
11661169 $dom->encoding = 'UTF-8';
11671170 $node = $dom->getElementsByTagName( $tagName )->item(0);
 1171+ wfProfileOut( __METHOD__ );
11681172 return $node;
11691173 }
11701174

Status & tagging log