aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-05-13 21:08:46 +0530
committerArun Agrawal <arunagw@gmail.com>2012-05-13 21:08:46 +0530
commit91c26e8e8662407a30e26c0e1c780ccfd01dbfcc (patch)
tree7a0a813e14f79706eb79bb87fc14cb1a9138c2d9 /activesupport/lib/active_support/testing/performance
parentaeac0bf620ab4504aceccf5cc3997c7a4ed96791 (diff)
downloadrails-91c26e8e8662407a30e26c0e1c780ccfd01dbfcc.tar.gz
rails-91c26e8e8662407a30e26c0e1c780ccfd01dbfcc.tar.bz2
rails-91c26e8e8662407a30e26c0e1c780ccfd01dbfcc.zip
Fixed ruby-prof changes and let's use latest ruby-prof now.
Diffstat (limited to 'activesupport/lib/active_support/testing/performance')
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb
index b7a34ea279..1104fc0a03 100644
--- a/activesupport/lib/active_support/testing/performance/ruby.rb
+++ b/activesupport/lib/active_support/testing/performance/ruby.rb
@@ -36,7 +36,7 @@ module ActiveSupport
RubyProf.pause
full_profile_options[:runs].to_i.times { run_test(@metric, :profile) }
@data = RubyProf.stop
- @total = @data.threads.values.sum(0) { |method_infos| method_infos.max.total_time }
+ @total = @data.threads.sum(0) { |thread| thread.methods.max.total_time }
end
def record