lazy php profiler

Caveman profiling with a side of “where were you at 9pm on the night in question?” As always, season to taste.


Sample use:

Output:
[code]
ammon@elzar:~$ cat /tmp/php-profile.log
[19:00:21] /home/ammon/test.php:20, _profile
[19:00:21] /home/ammon/test.php:21, func
[19:00:21] /home/ammon/test.php:22, obj::method
[19:00:21] /home/ammon/test.php:24, obj->method
[19:00:21] /home/ammon/test.php:13, func
[19:00:21] /home/ammon/test.php:16, obj->method
[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *