Hello,
I just started using SugarCRM an online CRM tool. I noticed that at
the bottom of the page it would print out the following line for every
page
Server response time: 0.315068 seconds.
Is there a way to do the same in Ruby on Rails?
Janak
Hello,
I just started using SugarCRM an online CRM tool. I noticed that at
the bottom of the page it would print out the following line for every
page
Server response time: 0.315068 seconds.
Is there a way to do the same in Ruby on Rails?
Janak
Hu,
I would try teh ruby on rails mailing list
On 10/26/06, [email protected] [email protected] wrote:
Hello,
I just started using SugarCRM an online CRM tool. I noticed that at
the bottom of the page it would print out the following line for every
pageServer response time: 0.315068 seconds.
Is there a way to do the same in Ruby on Rails?
Check out perform_action_with_benchmark in
actionpack/lib/action_controller/benchmarking.rb
It contains a line of code like this:
runtime = [Benchmark::measure{ perform_action_without_benchmark
}.real, 0.0001].max
You could add a line of code there that saved runtime to an instance
variable, and put it in the ActionController scope, so that you could
display it to the user. By default, it only goes to the log file.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs