back to notes

PHP Profiling Performance Graph w/ xdebug

apt-get install php5-xdebug

edit: /etc/php5/conf.d/20-xdebug.ini

add: # xdebug.remoteenable=on xdebug.remotehandle=dbgp xdebug.remotehost=localhost xdebug.remoteport=9000 xdebug.profilerenable = 1 xdebug.profileroutputname = cachegrind.out.%t-%s xdebug.profileroutputdir = "/home/dev10/performancestats" #

top, vmstat, dstat

http_load -parallel 5 -seconds 10 urls.txt (watch dstat meanwhile performing benchmark) (more infO: http://share.ez.no/learn/ez-publish/ez-publish-performance-optimization-part-1-of-3-introduction-and-benchmarking/%28from%29/ez.no)


Webgrind (Xdebug profiling web frontend in PHP5) https://code.google.com/p/webgrind/

  1. Download to web root
  2. Edit config.php
  3. Be sure $storageDir is writable by web server


last updated january 2013