Welcome Guest, Not a member yet? Register   Sign In
debug_backtrace .. and memory consumption
#1

[eluser]Ramania[/eluser]
hello people,

i was wondering if anyone knows how much overhead could i cause my code once i call debug_backtrace() each time a function is called, i would like to know the name of the function called for some reason in my code, and i found no alternative than called debug_backgrace() and getting the function name from the array e.g.

Code:
$functionName = debug_backtrace();
        echo $functionName['0']['function'];

i'm thinking about using the profiler later on, but for now i wanted to get a professional opinion about the matter, and if there is a better alternative that i could use.

thank you very much,

Rami


Messages In This Thread
debug_backtrace .. and memory consumption - by El Forum - 08-11-2010, 08:01 PM
debug_backtrace .. and memory consumption - by El Forum - 08-12-2010, 03:00 AM
debug_backtrace .. and memory consumption - by El Forum - 08-12-2010, 05:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB