mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
- print memory usage if available
git-svn-id: file:///svn/phpbb/trunk@4983 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
acf25b39a5
commit
d80f8d577e
@ -1736,6 +1736,16 @@ function page_footer()
|
|||||||
|
|
||||||
if ($auth->acl_get('a_'))
|
if ($auth->acl_get('a_'))
|
||||||
{
|
{
|
||||||
|
if (function_exists('memory_get_usage'))
|
||||||
|
{
|
||||||
|
if ($memory_usage = memory_get_usage())
|
||||||
|
{
|
||||||
|
$memory_usage = ($memory_usage >= 1048576) ? round((round($memory_usage / 1048576 * 100) / 100), 2) . ' ' . $user->lang['MB'] : (($memory_usage >= 1024) ? round((round($memory_usage / 1024 * 100) / 100), 2) . ' ' . $user->lang['KB'] : $memory_usage . ' ' . $user->lang['BYTES']);
|
||||||
|
|
||||||
|
$debug_output .= ' | Memory Usage: ' . $memory_usage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$debug_output .= ' | <a href="' . (($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : "index.$phpEx$SID") . ((strstr($_SERVER['REQUEST_URI'], '?')) ? '&' : '?') . 'explain=1">Explain</a>';
|
$debug_output .= ' | <a href="' . (($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : "index.$phpEx$SID") . ((strstr($_SERVER['REQUEST_URI'], '?')) ? '&' : '?') . 'explain=1">Explain</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user