I''m seeing weird numbers come up in my production log. I''ve looked for some kind of authoritative document describing what they mean, but haven''t found it yet. Here are my best guesses: "Completed in 125ms (View: 40, DB: 6)" 6ms in "DB" ... but what exactly counts as "DB"? Is this purely the time that Rails is waiting on the database to provide data? 40ms in "View" ... rendering the template. (?) 125-(40+6) = 79ms in the Controller. And here''s a weird one that I get frequently: "Completed in 27ms (View: 20, DB: 893)" No clue what this means. I''ve done testing on the server, using "time curl <url>", and found that the "Completed in" value is accurate. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
tommy xiao
2009-Dec-30 01:34 UTC
Re: How to interpret the log file''s "View:" and "DB:" numbers?
same here,i dont konw way. But i have a try search,this code can help we. http://ramblingsonrails.com/a-rails-log-parser-to-show-how-your-actions-are-performing View usage information by running: ruby_log_parser.rb --help Example andrew:~$ ruby rails_log_parser.rb --sort median < log/development.log +----------------------+-------+------------+------+------+------+--------+ | Uri | Calls | Total Time | Max | Min | Avg | Median | +----------------------+-------+------------+------+------+------+--------+ | TestController#index | 7 | 9316 | 1748 | 1053 | 1330 | 1221 | | TestController#show | 1 | 764 | 764 | 764 | 764 | 764 | +----------------------+-------+------------+------+------+------+--------+ 2009/12/30 Robb <robb.shecter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> I''m seeing weird numbers come up in my production log. I''ve looked > for some kind of authoritative document describing what they mean, but > haven''t found it yet. Here are my best guesses: > > "Completed in 125ms (View: 40, DB: 6)" > > 6ms in "DB" ... but what exactly counts as "DB"? Is this purely the > time that Rails is waiting on the database to provide data? > > 40ms in "View" ... rendering the template. (?) > > 125-(40+6) = 79ms in the Controller. > > > And here''s a weird one that I get frequently: > > "Completed in 27ms (View: 20, DB: 893)" > > No clue what this means. I''ve done testing on the server, using "time > curl <url>", and found that the "Completed in" value is accurate. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- tommy xiao E-mail: xiaods(AT)gmail.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.