From b91426b4089a2e5d147ef945f6502e99c4de2d82 Mon Sep 17 00:00:00 2001 From: haneul Date: Thu, 8 Oct 2009 11:32:13 +0000 Subject: [PATCH] #18354192 : add memory usage to firephp debug git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6831 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/func.inc.php b/config/func.inc.php index 0d3868bab..f4062e2e8 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -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;