Browse files

Merge pull request #6261 from carlosantoniodasilva/fix-build-3-1

Fix build 3-1-stable
  • Loading branch information...
2 parents e98893b + b7080e7 commit 7b7bf33c05477d4fb408db3e3ffa0d43c4f47559 @drogus drogus committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/testing/performance/ruby.rb
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 7b7bf33

Please sign in to comment.