r12661 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12660‎ | r12661 | r12662 >
Date:03:08, 14 January 2006
Author:midom
Status:old
Tags:
Comment:
transformMsg profiling hook, shows when site messages suck
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -3308,12 +3308,16 @@
33093309 global $wgTitle;
33103310 static $executing = false;
33113311
 3312+ $fname = "Parser::transformMsg";
 3313+
33123314 # Guard against infinite recursion
33133315 if ( $executing ) {
33143316 return $text;
33153317 }
33163318 $executing = true;
33173319
 3320+ wfProfileIn($fname);
 3321+
33183322 $this->mTitle = $wgTitle;
33193323 $this->mOptions = $options;
33203324 $this->mOutputType = OT_MSG;
@@ -3321,6 +3325,7 @@
33223326 $text = $this->replaceVariables( $text );
33233327
33243328 $executing = false;
 3329+ wfProfileOut($fname);
33253330 return $text;
33263331 }
33273332

Status & tagging log