module Remnant::GC::ClassMethods
Public Instance Methods
_gc()
click to toggle source
# File lib/remnant/gc.rb, line 28 def _gc Thread.current['remnant.gc'] ||= _gc_implementation end
_gc_implementation()
click to toggle source
# File lib/remnant/gc.rb, line 32 def _gc_implementation if ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) Remnant::GC::Ree elsif defined?(::GC::Profiler) Remnant::GC::Profiler else Remnant::GC::Base end end
clear_stats()
click to toggle source
# File lib/remnant/gc.rb, line 16 def clear_stats _gc.clear_stats end
collections()
click to toggle source
# File lib/remnant/gc.rb, line 24 def collections _gc.collections end
disable_stats()
click to toggle source
# File lib/remnant/gc.rb, line 12 def disable_stats _gc.disable_stats end
enable_stats()
click to toggle source
# File lib/remnant/gc.rb, line 8 def enable_stats _gc.enable_stats end
enabled?()
click to toggle source
# File lib/remnant/gc.rb, line 4 def enabled? _gc.enabled? end
time()
click to toggle source
# File lib/remnant/gc.rb, line 20 def time _gc.time end