Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6305 from arunagw/ruby-prof-fixes

Ruby prof fixes
  • Loading branch information...
commit 60de8010609ac7ac78fc19fa60b4d5805b4e511f 2 parents 116ab8f + 22e3177
@carlosantoniodasilva carlosantoniodasilva authored
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
1  activesupport/lib/active_support/testing/performance.rb
@@ -196,6 +196,7 @@ def self.[](name)
class Base
include ActionView::Helpers::NumberHelper
+ include ActionView::Helpers::OutputSafetyHelper
attr_reader :total
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
Please sign in to comment.
Something went wrong with that request. Please try again.