Find the slowest PHP-FPM requests in the slow log

grep 'script_filename' /var/log/php5-fpm.slow.log 
  | awk '{print $3}' | sort | uniq -c | sort -rn | head -10

# and the call that was on top of the stack when the sample was taken
grep -A1 'script_filename' /var/log/php5-fpm.slow.log 
  | awk '/^[0x/ {print $2}' | sort | uniq -c | sort -rn | head -10