I couldn''t find a way to pull it out and thus built a simple timer
plugin:
script/plugin install svn://rubyforge.org/var/svn/activewarehouse/timer/trunk
I also put together a little blog post about it:
http://anthonyeden.com/
That includes some of the information on gotchas I found while putting
the plugin together. I believe there is another plugin which makes the
query benchmarks available in your view.
V/r
Anthony
On 11/16/06, Jake Janovetz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Is there a way to display the time spent rendering a page and the time
> spent in SQL query? I''d like to throw this up on view pages
during
> debug.
>
> The logs seem to get this information, I just can''t seem to dig it
out.
>
> This page:
> http://wiki.rubyonrails.org/rails/pages/BenchmarkingRails
> covers benchmarking controllers, but doesn''t separate the render
and
> database times.
>
> I can duplicate the stuff in ActionController::Benchmarking and use my
> own "alias_method_chain", but I''d prefer to know how to
dig out the
> stuff that''s already there. Any ideas?
>
> Jake
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Email: anthonyeden-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cell: 808 782-5046
Current Location: Melbourne, FL
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---