diff options
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 2ccf734..0b14cc7 100644 --- a/it_debug.class +++ b/it_debug.class @@ -182,7 +182,9 @@ function backtrace($p = array()) $p += array('levels' => 0, 'skiplevels'=> 0, 'skipfiles' => "###"); - if (!function_exists('memory_get_usage') || (memory_get_usage() < 50000000)) + if (function_exists('memory_get_usage') && (memory_get_usage() > 50000000)) + $result = array("[mem usage too high]"); + else { foreach (array_slice(debug_backtrace(), $p['skiplevels'] + 1) as $call) { |