Index: trunk/phase3/includes/Article.php |
— | — | @@ -1860,6 +1860,7 @@ |
1861 | 1861 | global $wgEnableParserCache, $wgUser; |
1862 | 1862 | $user = is_null( $user ) ? $wgUser : $user; |
1863 | 1863 | |
| 1864 | + wfProfileIn( __METHOD__ ); |
1864 | 1865 | // Should the parser cache be used? |
1865 | 1866 | $useParserCache = $wgEnableParserCache && |
1866 | 1867 | $user->getStubThreshold() == 0 && |
— | — | @@ -1875,6 +1876,7 @@ |
1876 | 1877 | if ( $useParserCache ) { |
1877 | 1878 | $parserOutput = ParserCache::singleton()->get( $this, $this->mPage->getParserOptions() ); |
1878 | 1879 | if ( $parserOutput !== false ) { |
| 1880 | + wfProfileOut( __METHOD__ ); |
1879 | 1881 | return $parserOutput; |
1880 | 1882 | } |
1881 | 1883 | } |
— | — | @@ -1890,6 +1892,7 @@ |
1891 | 1893 | $text = $rev->getText(); |
1892 | 1894 | } |
1893 | 1895 | |
| 1896 | + wfProfileOut( __METHOD__ ); |
1894 | 1897 | return $this->getOutputFromWikitext( $text, $useParserCache ); |
1895 | 1898 | } |
1896 | 1899 | |