Skip to content

Commit

Permalink
Merge pull request #4195 from castlerock/remove_19_condition_for_GC_P…
Browse files Browse the repository at this point in the history
…rofiler

GC::Profiler available in ruby19
  • Loading branch information
spastorino committed Dec 26, 2011
2 parents 28b008b + 2443b65 commit 3e4d0da
Showing 1 changed file with 6 additions and 9 deletions.
Expand Up @@ -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

Expand Down

0 comments on commit 3e4d0da

Please sign in to comment.