r86375 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86374‎ | r86375 | r86376 >
Date:06:26, 19 April 2011
Author:ialex
Status:ok
Tags:
Comment:
Removed check whether memory_get_usage() exists; per manual it is always included since PHP 5.2.1 even without --enable-memory-limit
Modified paths:
  • /trunk/phase3/includes/profiler/Profiler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/profiler/Profiler.php
@@ -46,13 +46,6 @@
4747 Profiler::instance()->close();
4848 }
4949
50 -if (!function_exists('memory_get_usage')) {
51 - # Old PHP or --enable-memory-limit not compiled in
52 - function memory_get_usage() {
53 - return 0;
54 - }
55 -}
56 -
5750 /**
5851 * @ingroup Profiler
5952 * @todo document

Status & tagging log