Using Xdebug to profile PHP

(written by lawrence krubner, however indented passages are often quotes). You can contact lawrence at: lawrence@krubner.com, or follow me on Twitter.

Interesting overview of using Xdebug:

I’ve sorted the execution time of each call in order to determine which calls are the most expensive. The call to the Default_Model_Platform model’s hot() method ranks up towards the top, and because I know this data changes only every few hours, now I can safely cache it and thereby eliminate this expensive database query (which is indeed a fairly large JOIN operation). After implementing caching I again profile the page and indeed have eliminated that expensive call altogether

Post external references

  1. 1
    http://www.phpbuilder.com/columns/profiling-Xdebug-KCacheGrind/Jason_Gilmore12302010.php3
Source