Class: Rearview::Vm::NonHeap

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

Overview

The JVM manages additional memory that is not part of the heap. This memory is used for things like per-class structures such as a runtime constant pool, field and method data, and the code for methods and constructors.

Instance Attribute Summary

Attributes inherited from Memory

#memory_bean

Instance Method Summary collapse

Constructor Details

#initializeNonHeap

Returns a new instance of NonHeap.



41
42
43
# File 'lib/rearview/vm.rb', line 41

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