Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewmcdonough/251596 to your computer and use it in GitHub Desktop.
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