Log page titles that are more than 10% of the node count limit
authorTim Starling <tstarling@wikimedia.org>
Thu, 20 Sep 2012 04:39:32 +0000 (14:39 +1000)
committerTim Starling <tstarling@wikimedia.org>
Thu, 20 Sep 2012 04:39:32 +0000 (14:39 +1000)
Change-Id: I6824d305efd73de95ad15c65d3421886c2f86aa9

includes/parser/Parser.php

index 2a24bee..59d379a 100644 (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 );