Permalink
Browse files

GC::Profiler available in ruby19

  • Loading branch information...
vishnuatrai committed Dec 26, 2011
1 parent bec7cf2 commit 2443b651011efc4c2597cf6e1d0e5aad50809b40
Showing with 6 additions and 9 deletions.
  1. +6 −9 activesupport/lib/active_support/testing/performance/ruby/yarv.rb
@@ -4,15 +4,12 @@ module Performance
module Metrics
class Base
protected
- # Ruby 1.9 with GC::Profiler
- if defined?(GC::Profiler)
- def with_gc_stats
- GC::Profiler.enable
- GC.start
- yield
- ensure
- GC::Profiler.disable
- end
+ def with_gc_stats
+ GC::Profiler.enable
+ GC.start
+ yield
+ ensure
+ GC::Profiler.disable
end
end

0 comments on commit 2443b65

Please sign in to comment.