Original code from: http://www.rdlt.com/xdebug-trace-file-parser.html
Detects all the traces in your xdebug trace directory and offers to look at them in a nice way.
- Install it typing
pecl install xdebug
chown www-data /var/log/php
- Put
xdebug.ini
in /etc/php5/conf.d service apache2 restart
If the ini_set
doesn't run, add this to your Apache VirtualHost file:
<Directory /srv/www/lab/xdebug-trace-gui>
Order allow,deny
allow from 10.10.10
deny from all
php_value 'xdebug.auto_trace' 'Off'
php_value short_open_tag 1
</Directory>
Look at the file xdebug.httpd.conf
for an Apache VirtualHost sample configuration.
Change the directory and the IP range to match your setup.
There are 3 main files:
Xdebug trace gui with pagination, 1024 sentences in a page. For big traces. Memory and time consumition calculed by difference with previous instruction.
Old style trace gui all one page, with summaries.
Xdebug trace graph. Statistics memory consumition MB per centesims. You need the parent folder of jpGraph in the include_path.
The code was written pretty quickly and isn't great. Next time it'll be better ;-)
.