Class: Rearview::Vm::Heap
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
Instance Method Summary collapse
-
#initialize ⇒ Heap
constructor
A new instance of Heap.
Constructor Details
#initialize ⇒ Heap
Returns a new instance of Heap.
32 33 34 |
# File 'lib/rearview/vm.rb', line 32 def initialize @memory_bean = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage() end |