News Feed
Sections




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

Affinity Bridge Blog:
Code optimization with Xdebug and KCachegrind
August 28, 2009 @ 10:04:53

On the Affinity Bridge blog today there's a great post looking at the use of Xdebug and KCachegrind to pinpoint bottlenecks and possible refectoring points in your code in a bit more visual way. They use an example from their own development - a script that took around twenty minutes to run.

By reducing the number of queries, making small code optimizations, and properly indexing and keying the legacy database we managed to cut the time to 10 minutes'"still we were way off target. To get a better look at what was going on, we thought it would be great to install Xdebug and take a look at it with KCacheGrind.

They show you how to get the full setup installed (on a Ubuntu system) - the LAMP stack, Xdebug and KCacheGrind. Complete commands to install, configure and run a sample debug session are all included. Sample outputs from the KCacheGrind software are there too: code structure, execution times.

0 comments voice your opinion now!
xdebug kcachegrind optimize


blog comments powered by Disqus

Similar Posts

Derick Rethans' Blog: Xdebug 2.0.0RC2

Brandon Savage's Blog: Bug-Free: Using XDebug To Improve Development (Part 2 of N)

Sameer's Blog: Refactoring: An introduction for PHP programmers

Tony Lukasavage's Blog: PHP Debugging on IntelliJ IDEA 10 with Xdebug

Carsten Lucke's Blog: Debugging PHP with free tools (PDT + XDebug2)


Community Events





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


developer interview list testing framework install podcast language community laravel release series code symfony2 unittest introduction refactor opinion experience threedevsandamaybe

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