http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88168
Revision: 88168
Author: platonides
Date: 2011-05-15 12:40:32 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Profile brace substitution per title to help detect the "bad templates". (Make
this configurable?)
Modified Paths:
--------------
trunk/phase3/includes/parser/Parser.php
Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php 2011-05-15 12:37:50 UTC (rev
88167)
+++ trunk/phase3/includes/parser/Parser.php 2011-05-15 12:40:32 UTC (rev
88168)
@@ -3044,7 +3044,8 @@
# *** FIXME if piece['parts'] is null then the call to
getLength() below won't work b/c this $args isn't an object
$args = ( null == $piece['parts'] ) ? array() : $piece['parts'];
wfProfileOut( __METHOD__.'-setup' );
-
+ wfProfileIn( __METHOD__."-title-$originalTitle" );
+
# SUBST
wfProfileIn( __METHOD__.'-modifiers' );
if ( !$found ) {
@@ -3262,6 +3263,7 @@
# Recover the source wikitext and return it
if ( !$found ) {
$text = $frame->virtualBracketedImplode( '{{', '|',
'}}', $titleWithSpaces, $args );
+ wfProfileOut( __METHOD__."-title-$originalTitle" );
wfProfileOut( __METHOD__ );
return array( 'object' => $text );
}
@@ -3330,6 +3332,7 @@
$ret = array( 'text' => $text );
}
+ wfProfileOut( __METHOD__."-title-$originalTitle" );
wfProfileOut( __METHOD__ );
return $ret;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs