Merge "Use Parser::SFH_NO_HASH/SFH_OBJECT_ARGS class const"
[lhc/web/wiklou.git] / includes / parser / Parser.php
index dcefc05..1b926c4 100644 (file)
@@ -533,12 +533,12 @@ class Parser {
                        // Add on template profiling data
                        $dataByFunc = $this->mProfiler->getFunctionStats();
                        uasort( $dataByFunc, function( $a, $b ) {
-                               return $a['elapsed'] < $b['elapsed']; // descending order
+                               return $a['real'] < $b['real']; // descending order
                        } );
-                       $profileReport = "Top template expansion time report (%,ms,calls,template)\n";
+                       $profileReport = "Transclusion expansion time report (%,ms,calls,template)\n";
                        foreach ( array_slice( $dataByFunc, 0, 10 ) as $item ) {
-                               $profileReport .= sprintf( "%6.2f%% %3.6f %6d - %s\n",
-                                       $item['percent'], $item['elapsed'], $item['calls'],
+                               $profileReport .= sprintf( "%6.2f%% %8.3f %6d - %s\n",
+                                       $item['%real'], $item['real'], $item['calls'],
                                        htmlspecialchars($item['name'] ) );
                        }
                        $text .= "\n<!-- \n$profileReport-->\n";