mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#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:
parent
6e0c3615c2
commit
b91426b408
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue