![]() |
debug_backtrace .. and memory consumption - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: debug_backtrace .. and memory consumption (/showthread.php?tid=33001) |
debug_backtrace .. and memory consumption - El Forum - 08-11-2010 [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(); 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 debug_backtrace .. and memory consumption - El Forum - 08-12-2010 [eluser]WanWizard[/eluser] Check out PHP Magic Constants... debug_backtrace .. and memory consumption - El Forum - 08-12-2010 [eluser]Ramania[/eluser] yes thank you, i forgot to mention that after half an hour of posting this yesterday i found out __FUNCTION__ and __CLASS__ .. those two constants gave me what i wanted ![]() |