Created
May 30, 2012 13:37
-
-
Save raphaelcm/2836370 to your computer and use it in GitHub Desktop.
Search last N lines of Rails log for slow queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -n 10000 log/development.log | egrep -n '(Load|SQL|AREL|Request) \([2-9][0-9]{2,}.[0-9]ms\)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment