遅いサイトをなんとかする必要があったので、まずは計測する。 最初に使ったrack-mini-profilerは大して役に立たないので無駄だった。 qcachegrindのインストール % brew install qcachegrind graphviz graphvizはqcachegrindでコールグラフの生成に使う 手順 Gemfileにruby-profを追加 group :profile do gem 'ruby-prof' end config.ruにprofの設定追加 if Rails.env.profile? use Rack::RubyProf, :path => 'tmp/profile', :printers => { ::RubyProf::FlatPrinter => 'flat.txt', ::RubyProf::GraphPrinter => 'graph.t
