mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12687] Don't check if memory_get_peak_usage() exists
PHPBB3-12687
This commit is contained in:
parent
dc4132a494
commit
c605e8f423
1 changed files with 4 additions and 7 deletions
|
@ -5068,8 +5068,6 @@ function phpbb_generate_debug_output(phpbb\db\driver\driver_interface $db, \phpb
|
|||
|
||||
$debug_info[] = $db->sql_num_queries() . ' Queries';
|
||||
|
||||
if (function_exists('memory_get_peak_usage'))
|
||||
{
|
||||
$memory_usage = memory_get_peak_usage();
|
||||
if ($memory_usage)
|
||||
{
|
||||
|
@ -5078,7 +5076,6 @@ function phpbb_generate_debug_output(phpbb\db\driver\driver_interface $db, \phpb
|
|||
$debug_info[] = 'Peak Memory Usage: ' . $memory_usage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('DEBUG'))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue