Class MemoryInfo

java.lang.Object
com.strategyquant.lib.MemoryInfo

public class MemoryInfo extends Object
Class keeping current memory information about allocated memory and objects.
  • Field Details

    • allocatedMemory

      public long allocatedMemory
      The allocated memory.
    • allocatedObjects

      public int allocatedObjects
      The allocated objects.
    • totalAllocatedMemory

      public long totalAllocatedMemory
      The total allocated memory.
    • totalAllocatedObjects

      public int totalAllocatedObjects
      The total allocated objects.
    • totalDeallocatedMemory

      public long totalDeallocatedMemory
      The total deallocated memory.
    • totalDeallocatedObjects

      public int totalDeallocatedObjects
      The total deallocated objects.
    • reallocations

      public int reallocations
      The reallocations.
  • Constructor Details

    • MemoryInfo

      public MemoryInfo()
  • Method Details

    • copyFrom

      public void copyFrom(MemoryInfo memoryInfo)
      Copy from.
      Parameters:
      memoryInfo - the memory info
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string