Sha256: 2eae447309e1fd54444e5046b16bd4fb9ee2ad498a8c7981553e4996055652db

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

module AbstractReflection
  # Reflective access to the GC. This includes statistics, runtime
  # behavior observation and triggering specific GC functionality.
  module GCMirror
    include Mirror

    # Trigger a GC run
    # @return stats about cleaned objects, freed memory, etc
    def collect_garbage
      raise CapabilitiesExceeded
    end

    # Run memory compaction
    # @return info about freed memory, moved pages, etc
    def compact_memory
      raise CapabilitiesExceeded
    end    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubymirrors-0.0.3 lib/abstract_reflection/gc_mirror.rb
rubymirrors-0.0.2 lib/abstract_reflection/gc_mirror.rb
rubymirrors-0.0.1 lib/abstract_reflection/gc_mirror.rb