Skip to content

Instantly share code, notes, and snippets.

View jstirnaman's full-sized avatar

Jason Stirnaman jstirnaman

View GitHub Profile
@jstirnaman
jstirnaman / rails log analyzer
Created June 29, 2012 14:49 — forked from aub/rails log analyzer
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..