Skip to content

Instantly share code, notes, and snippets.

View katsuma's full-sized avatar
🏠
Working from home

ryo katsuma katsuma

🏠
Working from home
View GitHub Profile
@aub
aub / rails log analyzer
Created January 16, 2009 18:46
A script to check performance metrics from your rails log
#!/usr/bin/env ruby
# This script will take a look at the output from your rails application and print
# info about the number of selects, updates and inserts, as well as the slowest partials
# to render and the slowest selects.
#
# Usage... just pipe the output of your rails app or log to it:
#
# script/server | log_analyzer.rb
# or..