News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adam Culp:
XHProf PHP Profiling
August 05, 2013 @ 09:03:35

Adam Culp has posted to his site about some of his experiences with XHProf and profiling his PHP applications.

Today I set up my development environment so I can use XHProf to profile PHP scripts when needed, and it was pretty easy. [...] XHProf is a PECL package, and can be easily installed by using standard PECL commands.

He walks you through the installation of the PECL package (you'll need to use the command line for this one) and how to add the module to your php.ini to enable it. Once you restart your web server, you can start the debugging using the xhprof_enable function and then the xhprof_disable function to end the testing and retrieve the data for processing. He also includes a bit of output from his own pass-through script to show the results.

0 comments voice your opinion now!
xhprof profiling install tutorial debug

Link: http://www.geekyboy.com/archives/718

blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Introduction to Gearman - Multitasking in PHP

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 8)

DevShed: Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP

Rob Allen's Blog: Tutorial Notes - Zend_Auth in French & Using Oracle

PHPMaster.com: What’s New in PHP 5.5


Community Events





Don't see your event here?
Let us know!


series project threedevsandamaybe bugfix community application introduction wordpress podcast code list language library api laravel configure interview release framework developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework