Recent Blog Posts
Blogs ยป Archive for April 20th, 2006
PHP frontend for Xdebug profiling?
Has anyone put together a PHP front-end for viewing Xdebug 2.x’s profiling output yet?
Xdebug 1.x had this nice xdebug_dump_function_profile() function which planted a HTML table containing the profiling stats in your output - nice an easy to use, ignoring the minor issue that doing this “in band” with the code you are profiling slants the results. With Xdebug 2.x it was dropped and you now need a tool like kcachegrind or wincachegrind, an output file generated by Xdebug acting as the middle man.
The format of the profile output file is fairly straightforward (in fact the wincachegrind developer provides a nice short summary with the install README). Perhaps the trickier issue is how to deal with large files. And this could be a valid reason to use some AJAX… In fact it’s tempting to take a shot using wxpython (the book is out BTW - and it’s good) and put together a cross platform front end, but that’s another story.
Or do I need to do it myself ? ;)
Side note: the definitive Xdebug tutorial - http://derickrethans.nl/files/phparch-xdebug-qa.pdf
Try Ruby!
Keen to give this Ruby thing a go, but don’t have the time/resources/know-how to set up a test environment?
There’s a spanky little interactive Ruby tutorial you can try. All you need is your web browser and a spare 15 minutes.
A great way to get acquainted with the Ruby language and interpreter.
Sponsored Links
SitePoint Marketplace
Buy and sell Websites, templates, domain names, hosting, graphics and more.
Download sample chapters of any of our popular books.




