News Feed
Jobs Feed
Sections




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

NetTuts.com:
Advanced CodeIgniter Profiling With XHProf
April 18, 2012 @ 13:12:18

On the NetTuts.com site today there's a new tutorial showing how to use XHProf to profile CodeIgniter-based applications and fidn the spots that are causing the most overhead/issues.

XHProf will provide you with a hierarchical profile of the functions your application calls, allowing you to follow the chain of events that lead up to resource intensive code running. You'll be able to see exactly how much wall time (the actual time elapsed), CPU time and memory your application uses. This tutorial will help you get XHProf installed on your server, and integrated with your CodeIgniter application via hooks so that you can start profiling your application, in a production environment, straight away. Everything you see here was written for Ubuntu 10.04 - the latest LTS release at the time of writing.

They walk you through the installation of the tool (via a wget of the source), show you how to integrate it with CodeIgniter via hooks and include a simple class that is called to execute and report on the findings. Some sample output is included as well as some general tips on interpreting the results.

0 comments voice your opinion now!
codeigniter profile xhprof framework


blog comments powered by Disqus

Similar Posts

Richard Miller's Blog: Symfony2: Integrating elasticsearch

Community News: Latest PECL Releases for 06.01.2010

Zend Developer Zone: Zend Framework Preview Release 0.6.0 Announced

Mike Potter's Blog: PHP and Flex - JSON, XML or AMFPHP?

PHPMaster.com: 6 Things to Consider when Choosing a Framework


Community Events











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


performance release facebook language hhvm framework application hack security code component database unittest symfony2 introduction composer threedevsandamaybe package install podcast

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