transformMsg profiling hook, shows when site messages suck
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 14 Jan 2006 03:08:04 +0000 (03:08 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 14 Jan 2006 03:08:04 +0000 (03:08 +0000)
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;
        }