Sha256: 6c6e66fe894536f3ccd9ae9381b97a43896c156c0f052bc607ae13a7a75810f5

Contents?: true

Size: 544 Bytes

Versions: 17

Compression:

Stored size: 544 Bytes

Contents

class Remnant
  class GC
    class Ree
      module ClassMethods
        def enabled?
          true
        end

        def time
          # returns time in microseconds so convert to ms
          ::GC.time / 1000
        end

        def collections
          ::GC.collections
        end

        def enable_stats
          ::GC.enable_stats
        end

        def disable_stats
          ::GC.disable_stats
        end

        def clear_stats
          ::GC.clear_stats
        end
      end
      extend ClassMethods
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
remnant-1.0.0 lib/remnant/gc/ree.rb
remnant-0.4.10 lib/remnant/gc/ree.rb
remnant-0.4.9 lib/remnant/gc/ree.rb
remnant-0.4.8 lib/remnant/gc/ree.rb
remnant-0.4.7 lib/remnant/gc/ree.rb
remnant-0.4.6 lib/remnant/gc/ree.rb
remnant-0.4.5 lib/remnant/gc/ree.rb
remnant-0.9.5 lib/remnant/gc/ree.rb
remnant-0.9.4 lib/remnant/gc/ree.rb
remnant-0.4.4 lib/remnant/gc/ree.rb
remnant-0.9.3 lib/remnant/gc/ree.rb
remnant-0.9.2 lib/remnant/gc/ree.rb
remnant-0.9.1 lib/remnant/gc/ree.rb
remnant-0.9.0 lib/remnant/gc/ree.rb
remnant-0.4.3 lib/remnant/gc/ree.rb
remnant-0.4.2 lib/remnant/gc/ree.rb
remnant-0.4.1 lib/remnant/gc/ree.rb