aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-02-29 23:17:52 +0000
committerMichael Koziarski <michael@koziarski.com>2008-02-29 23:17:52 +0000
commitfa4d5f2dc1e63df9ce289aedea844fe69327241b (patch)
treebb0ec7accb5a3ba7aacbd25427d90afbe55f2ed7 /actionpack
parent13a60b83a470fb90f91a073b0540f7b02aa11ebd (diff)
downloadrails-fa4d5f2dc1e63df9ce289aedea844fe69327241b.tar.gz
rails-fa4d5f2dc1e63df9ce289aedea844fe69327241b.tar.bz2
rails-fa4d5f2dc1e63df9ce289aedea844fe69327241b.zip
Use realtime to reduce garbage. [adymo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/benchmarking.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/benchmarking.rb b/actionpack/lib/action_controller/benchmarking.rb
index 6916e60e23..98b0325ba3 100644
--- a/actionpack/lib/action_controller/benchmarking.rb
+++ b/actionpack/lib/action_controller/benchmarking.rb
@@ -48,7 +48,7 @@ module ActionController #:nodoc:
db_runtime = ActiveRecord::Base.connection.reset_runtime if Object.const_defined?("ActiveRecord") && ActiveRecord::Base.connected?
render_output = nil
- @rendering_runtime = Benchmark::measure{ render_output = render_without_benchmark(options, extra_options, &block) }.real
+ @rendering_runtime = Benchmark::realtime{ render_output = render_without_benchmark(options, extra_options, &block) }
if Object.const_defined?("ActiveRecord") && ActiveRecord::Base.connected?
@db_rt_before_render = db_runtime