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 <[email protected]>

> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to