finding process bottlenecks rails/ruby
I just got started with rails, and when I testing in development mode, I see in the logs that my Mailer action is taking 1175ms. Is there anyway to find out what exactly is the slow step?
Also, there is a line that says (View:2, DB:1). I assume the DB means number of d开发者_开发知识库atabase lookups, but what about the view?
You can try reading the benchmarking and profiling guide to learn how to find bottlenecks.
Also, the View: 2, DB: 1
actually refers to the time spent in milliseconds in each part.
If the mailer call is part of rendering a view you can use fiveruns-tuneup to dig into the calls and see which one is causing the delay. http://github.com/fiveruns/fiveruns_tuneup
精彩评论