Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -756,8 +756,8 @@ |
757 | 757 | } else { |
758 | 758 | $prefix = sprintf( "%6.4f", microtime( true ) - $start ); |
759 | 759 | } |
760 | | - |
761 | | - return $prefix . ' '; |
| 760 | + $mem = sprintf( "%5.1fM", ( memory_get_usage( true ) / (1024*1024) ) ); |
| 761 | + return "$prefix $mem " ; |
762 | 762 | } |
763 | 763 | |
764 | 764 | /** |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4006,6 +4006,7 @@ |
4007 | 4007 | |
4008 | 4008 | /** |
4009 | 4009 | * Prefix debug messages with relative timestamp. Very-poor man's profiler. |
| 4010 | + * Since 1.19 also includes memory usage. |
4010 | 4011 | */ |
4011 | 4012 | $wgDebugTimestamps = false; |
4012 | 4013 | |