Sha256: 8a3a278f001656181b42b8b579640acbb6fbb4369847762af9543bd541c847be
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
class Remnant class GC module ClassMethods def enabled? _gc.enabled? end def enable_stats _gc.enable_stats end def disable_stats _gc.disable_stats end def clear_stats _gc.clear_stats end def time _gc.time end def collections _gc.collections end def _gc Thread.current['remnant.gc'] ||= _gc_implementation end def _gc_implementation if ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) Remnant::GC::Ree else Remnant::GC::Base end end end extend ClassMethods end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
remnant-0.4.4 | lib/remnant/gc.rb |
remnant-0.4.3 | lib/remnant/gc.rb |
remnant-0.4.2 | lib/remnant/gc.rb |
remnant-0.4.1 | lib/remnant/gc.rb |