Railscasts #98

Railscasts - Request Profiling

  • sudo gem install ruby-profでインストールしておくこと
  • lib/products_index_profiler.rb とかに測定対象のリクエストを書いておくよ
  • RAILS_ENV=staging script/performance/request lib/products_index_profiler.rb
  • HTMLでコールグラフが確認できるよ
  • handle_requestとかcall_filtersとかを見るといいよ