News Feed
Sections




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

PHPBuilder.com:
Profiling PHP Code with Xdebug and KCacheGrind
December 31, 2010 @ 12:09:07

New on PHPBuilder.com today there's a tutorial on profiling your applications with the help of XDebug and the KCacheGrind tools.

[Eventually you'll want to seek out and resolve any bottlenecks.] Which brings us to the question of how to even go about determining which parts of an application could conceivably be optimized. One common approach involves using a profiler such as Xdebug, which can analyze your code and produce performance reports. These reports can then be reviewed within a profiling visualization tool such as KCacheGrind. In this article I'll show you how to use Xdebug and KCacheGrind to begin profiling and analyzing your PHP-driven Web applications.

He starts you from the beginning - installing both XDebug and KCacheGrind (unix-based, if you're on Windows try WinCacheGrind). He gives an example of a profile report based on a Zend Framework application and an example call graph output (as well as how some caching can help things quite a bit).

0 comments voice your opinion now!
profile tutorial xdebug kcachegrind


blog comments powered by Disqus

Similar Posts

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

DevShed: Completing a Web Site Template using Inheritance in PHP 5

PHPMaster.com: Creating a Mobile Photo Blog, Part 2

PHPClasses.org Blog: Developing scalable PHP applications using MongoDB

Herbert's Blog: PHP with SQL on Google App Engine


Community Events

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


framework opinion laravel5 laravel voicesoftheelephpant release language xdebug php7 unittest series community example podcast extension install interview api library introduction

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