Profile point
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 25 Nov 2004 06:19:21 +0000 (06:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 25 Nov 2004 06:19:21 +0000 (06:19 +0000)
includes/Article.php

index 5562294..5437d46 100644 (file)
@@ -69,6 +69,9 @@ class Article {
          * @return string $text|false the text requested
        */
        function getRevisionText( $row, $prefix = 'old_' ) {
+               $fname = 'Article::getRevisionText';
+               wfProfileIn( $fname );
+               
                # Get data
                $textField = $prefix . 'text';
                $flagsField = $prefix . 'flags';
@@ -111,6 +114,7 @@ class Article {
                        global $wgInputEncoding, $wgContLang;
                        $text = $wgContLang->iconv( $wgLegacyEncoding, $wgInputEncoding, $text );
                }
+               wfProfileOut( $fname );
                return $text;
        }