Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created September 14, 2011 14:03
Show Gist options
  • Save BDQ/1216639 to your computer and use it in GitHub Desktop.
Save BDQ/1216639 to your computer and use it in GitHub Desktop.
#longest actions (total)
grep "Completed 200 OK in" log/production.log | cut -d' ' -f 5 | grep '[0-9.]*' -o | sort -n
#longest actions (view)
# grep "Completed 200 OK in" log/production.log | cut -d' ' -f 7 | grep '[0-9.]*' -o | sort -n
# longest actions (database)
# grep "Completed 200 OK in" log/production.log | cut -d' ' -f 10 | grep '[0-9.]*' -o | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment