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/
- Download to web root
- Edit config.php
- Be sure $storageDir is writable by web server
last updated january 2013