xdebug
xdebug
Analyze Trace files
The human readable trace file might be too much to manually process.
The following will print only lines where the time took longer than 0.1 seconds
- trace.pl
#!/usr/bin/perl $last = 0; while(<>){ @fields = split(/\s+/); $diff = $fields[1] - $last; $last = $fields[1]; if($diff > 0.1){ # adjust number here print "+$diff\t"; print $_; } }
To quickly enumerate the number of function calls:
cat trace.xt |awk -e '{print $4}' |sort |uniq -c |sort -n
xdebug.txt · Last modified: 2013/07/15 14:23 by 91.64.97.231