transformMsg profiling hook, shows when site messages suck
[lhc/web/wiklou.git] / includes / Parser.php
index 099d46d..0a12424 100644 (file)
@@ -3308,12 +3308,16 @@ class Parser
                global $wgTitle;
                static $executing = false;
 
+               $fname = "Parser::transformMsg";
+
                # Guard against infinite recursion
                if ( $executing ) {
                        return $text;
                }
                $executing = true;
 
+               wfProfileIn($fname);
+
                $this->mTitle = $wgTitle;
                $this->mOptions = $options;
                $this->mOutputType = OT_MSG;
@@ -3321,6 +3325,7 @@ class Parser
                $text = $this->replaceVariables( $text );
 
                $executing = false;
+               wfProfileOut($fname);
                return $text;
        }