#18354192 : add memory usage to firephp debug

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6831 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-10-08 11:32:13 +00:00
parent 6e0c3615c2
commit b91426b408

View file

@ -499,7 +499,14 @@
if(__DEBUG_OUTPUT__ == 2 && version_compare(PHP_VERSION, '5.2.0', '>=')) {
if(!isset($firephp)) $firephp = FirePHP::getInstance(true);
$label = sprintf('[%s:%d] ', $file_name, $line_num);
if(version_compare(PHP_VERSION, "4.3.2", ">="))
{
$label = sprintf('[%s:%d] (m:%s)', $file_name, $line_num, FileHandler::filesize(memory_get_usage()));
}
else
{
$label = sprintf('[%s:%d] ', $file_name, $line_num);
}
// FirePHP 옵션 체크
if($display_option === 'TABLE') $label = $display_option;