Profiling using Xdebug and Webgrind

Xdebug installation details are here. To see see cachegrind outputs, install Webgrind.

Create directory from where webgrind needs to be executed
$ sudo mkdir /var/www/webgrind

Set directory ownership
$ sudo chown -R [OWNER][:[GROUP]] /var/www/webgrind

Download and install the same

$ wget https://github.com/jokkedk/webgrind/archive/master.zip
$ unzip master.zip

Update conf
$ sudo vim /etc/apache2/sites-available/myapi.conf


    ServerName dev.profiling-myapi.com
    DocumentRoot /var/www/webgrind/webgrind-master/
    
        AllowOverride All
        Options -Indexes
    

Add the domain to DNS and restart apache And it’s there Profiling endpoint

Selection_003

That’s all.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s