Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix build 3-1-stable #6261

Merged
merged 1 commit into from

2 participants

Carlos Antonio da Silva Piotr Sarnacki
Carlos Antonio da Silva

Update performance profiler to work with latest ruby-prof changes.

Failing build

Piotr Sarnacki drogus merged commit 7b7bf33 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/testing/performance/ruby.rb
2  activesupport/lib/active_support/testing/performance/ruby.rb
View
@@ -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
Something went wrong with that request. Please try again.