class Skylight::Core::VM::GC
Public Class Methods
new()
click to toggle source
# File lib/skylight/core/vm/gc.rb, line 33 def initialize @total = 0 end
Public Instance Methods
enable()
click to toggle source
# File lib/skylight/core/vm/gc.rb, line 37 def enable ::GC::Profiler.enable end
total_time()
click to toggle source
# File lib/skylight/core/vm/gc.rb, line 41 def total_time # Reported in seconds run = (::GC::Profiler.total_time * 1_000_000).to_i if run > 0 ::GC::Profiler.clear end @total += run end