Champs, Is there any way to find out that how much time a page had taken to load itself ? Googled for it but no luck.. :''( -- Posted via http://www.ruby-forum.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.
You can check your rails logs. There you will find out how long time your request took in db, rendering views and the total time. /K 2010/1/25 Hemant Bhargava <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> Champs, > > Is there any way to find out that how much time a page had taken to load > itself ? Googled for it but no luck.. :''( > -- > Posted via http://www.ruby-forum.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. > >-- 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.
On 25 Jan 2010, at 15:31, Hemant Bhargava wrote:> Is there any way to find out that how much time a page had taken to > load > itself ? Googled for it but no luck.. :''(You can find that information in the production log and you can parse it using rawk (http://ckhsponge.wordpress.com/2006/10/11/ruby-on-rails-log-analyzer-rawk/ ). There''s no reason whatsoever to show the end user how long it takes for a page to render. Best regards Peter De Berdt -- 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.
You can use a Rack Middleware. This screencast show you how to do it: http://railscasts.com/episodes/151-rack-middleware Best regards _______________________ Agustin Viñao www.agustinvinao.com.ar agustinvinao (Skype) On Mon, Jan 25, 2010 at 11:39 AM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>wrote:> > On 25 Jan 2010, at 15:31, Hemant Bhargava wrote: > > Is there any way to find out that how much time a page had taken to load > itself ? Googled for it but no luck.. :''( > > > You can find that information in the production log and you can parse it > using rawk ( > http://ckhsponge.wordpress.com/2006/10/11/ruby-on-rails-log-analyzer-rawk/). > There''s no reason whatsoever to show the end user how long it takes for a > page to render. > > > Best regards > > > Peter De Berdt > > -- > 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. >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for your quickies..:) Actually i want to write all of the information of a user into the log files. I mean what he do, where he do, time taken by page to load etc etc.. So can you guys tell me the way to do it..I do not have idea about it.. Agustin Viñao wrote:> You can use a Rack Middleware. This screencast show you how to do it: > http://railscasts.com/episodes/151-rack-middleware > > Best regards > _______________________ > Agustin Viñao > www.agustinvinao.com.ar > agustinvinao (Skype) > > > On Mon, Jan 25, 2010 at 11:39 AM, Peter De Berdt-- Posted via http://www.ruby-forum.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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hemant Bhargava wrote:> Thanks for your quickies..:) > > Actually i want to write all of the information of a user into the log > files. I mean what he do, where he do, time taken by page to load etc > etc..Rails already does this. There''s nothing further you need to do.> So can you guys tell me the way to do it..I do not have idea about > it.. > >Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.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.
But how can i do it? Where does rails do it? I want to write a summary like user with session id is accessing page ABC, have taken abc time.. etc etc. in a sinle line of log files .. Marnen Laibow-Koser wrote:> Hemant Bhargava wrote: >> Thanks for your quickies..:) >> >> Actually i want to write all of the information of a user into the log >> files. I mean what he do, where he do, time taken by page to load etc >> etc.. > > Rails already does this. There''s nothing further you need to do. > >> So can you guys tell me the way to do it..I do not have idea about >> it.. >> >> > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- Posted via http://www.ruby-forum.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.
On Jan 27, 6:23 am, Hemant Bhargava <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> But how can i do it? Where does rails do it? I want to write a summary > like user with session id is accessing page ABC, have taken abc time.. > etc etc. in a sinle line of log files .. > >By default log files go into your app''s log folder Fred> > > > Marnen Laibow-Koser wrote: > > Hemant Bhargava wrote: > >> Thanks for your quickies..:) > > >> Actually i want to write all of the information of a user into the log > >> files. I mean what he do, where he do, time taken by page to load etc > >> etc.. > > > Rails already does this. There''s nothing further you need to do. > > >> So can you guys tell me the way to do it..I do not have idea about > >> it.. > > > Best, > > -- > > Marnen Laibow-Koser > >http://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > Posted viahttp://www.ruby-forum.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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks guyz.. Resolved it .. Actually rails already provide this thing.. I mean using "debug params", you can find out that what parameters coming.. And the based upon those parameters you can find out whatever you want.. Say like you want the action name then type just params[:action] and you''ll get action name of the page.. Same with any others.. Cheers .. Frederick Cheung wrote:> On Jan 27, 6:23�am, Hemant Bhargava <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> But how can i do it? Where does rails do it? I want to write a summary >> like user with session id is accessing page ABC, have taken abc time.. >> etc etc. in a sinle line of log files .. >> >> > By default log files go into your app''s log folder > > Fred-- Posted via http://www.ruby-forum.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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.