Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save andrewmcdonough/251596 to your computer and use it in GitHub Desktop.
Finding performance problems
gunzip -c production.log.1.gz |awk '/MyController#create/ {freq[substr($7,0,5)]++} END {for (time in freq) printf "%d\t%s\n", freq[time], time }' | sort -nr | head -n 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment