Installing Webgrind, the Xdebug Profiler

Webgrind is a front-end for Xdebug profiling, released under BSD License.

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:

Step 0
Install Xdebug. (Already done in my scenario)

Step 1
Enter the following entries to php.ini file.


Step 2
Download Webgrind, and extract the archive to the web server’s root directory.

Step 3
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:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: