Hi, i want to display the time that rails needs to render / process a request from the user. From start -> a request from a user is recieved by my application -> the db requests and all the logics are processed -> the view is rendered -> the response is beeing send -> stop.I dont want to do this with apache benchmark or s.th. like that. Just with ruby / rails stuff. I dont want to add the Webserver overhead, just the time rails needs to process a request from recieve to response so i can show it in each view at the bottom of the page. is there a rails / ruby way to do this? Pascal --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pascal,
> i want to display the time that rails needs to render / process a
> request from the user. From start -> a request from a user is
Try the
Timer plugin
I would use code like this in the page footer :
<% if current_user_is_admin? -%>
<script type="text/javascript" charset="utf-8">
window.status = " Action= <%= sprintf("%2.3f",
runtime) %> sec.,"
</script>
<% end %>
Another valuable plugin is the
query_stats plugin
http://agilewebdevelopment.com/plugins/query_stats
It tells you about the DB related activities. Very useful to find the
slow spots to cache.
Alain
---
blog.ravet.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
> the Timer pluginhttp://agilewebdevelopment.com/plugins/timer --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---