Class: Rearview::Vm::Heap

Inherits:
Memory
  • Object
show all
Defined in:
lib/rearview/vm.rb

Overview

The JVM has a heap that is the runtime memory from which all class instances and arrays are allocated.

Instance Attribute Summary

Attributes inherited from Memory

#memory_bean

Instance Method Summary collapse

Constructor Details

#initializeHeap

Returns a new instance of Heap.



32
33
34
# File 'lib/rearview/vm.rb', line 32

def initialize
  @memory_bean = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage()
end