Log page titles that are more than 10% of the node count limit

Change-Id: I6824d305efd73de95ad15c65d3421886c2f86aa9
This commit is contained in:
Tim Starling 2012-09-20 14:39:32 +10:00
parent 94158d6387
commit ade7daae2c

View file

@ -491,6 +491,11 @@ class Parser {
$PFreport;
wfRunHooks( 'ParserLimitReport', array( $this, &$limitReport ) );
$text .= "\n<!-- \n$limitReport-->\n";
if ( $this->mGeneratedPPNodeCount > $this->mOptions->getMaxGeneratedPPNodeCount() / 10 ) {
wfDebugLog( 'generated-pp-node-count', $this->mGeneratedPPNodeCount . ' ' .
$this->mTitle->getPrefixedDBkey() );
}
}
$this->mOutput->setText( $text );