Permalink
Browse files

Fixed ruby-prof changes and let's use latest ruby-prof now.

  • Loading branch information...
1 parent aeac0bf commit 91c26e8e8662407a30e26c0e1c780ccfd01dbfcc @arunagw committed May 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 activesupport/lib/active_support/testing/performance/ruby.rb
View
2 Gemfile
@@ -50,7 +50,7 @@ instance_eval File.read local_gemfile if File.exists? local_gemfile
platforms :mri do
group :test do
- gem 'ruby-prof', '0.10.8'
+ gem 'ruby-prof', '~> 0.11.2'
end
end
View
2 activesupport/lib/active_support/testing/performance/ruby.rb
@@ -36,7 +36,7 @@ def run
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

0 comments on commit 91c26e8

Please sign in to comment.