Using this, developpers can easily monitor the functions called in a PHP script, and the times spent in functions by self cost or inclusive cost. (Inclusive cost is time inside function, plus calls to other functions)
It’s cross platform compatible and easy to use once installed. (Yeah, the installation is no that easy). I had Xdebug already installed, and after going through this, I managed get it running, after following these steps:
Install Xdebug. (Already done in my scenario)
Enter the following entries to php.ini file.
[xdebug] xdebug.profiler_enable=1 xdebug.profiler_output_dir="/tmp" xdebug.profiler_output_name="cachegrind.out.%t.%p"
Download Webgrind, and extract the archive to the web server’s root directory.
Restart the web server.
Once profiling is enabled, the performance of the web server gets reduced slightly. But you can disabled profiling by changing php.ini as follows: