Class SystemState


  • public final class SystemState
    extends java.lang.Object
    To be used for testing. Will contain the actual state of the system and provides methods to print it.
    • Method Detail

      • currentTimeAfterGc

        public static SystemState currentTimeAfterGc()
      • currentTimeBeforeGc

        public static SystemState currentTimeBeforeGc()
      • memoryUsageInByte

        public static long memoryUsageInByte()
      • printTo

        public void printTo​(java.io.PrintStream stream)
      • printToStdOut

        public void printToStdOut()
      • getMemoryUsageInKB

        public long getMemoryUsageInKB()
      • getMemoryUsageInB

        public long getMemoryUsageInB()
      • getTimeInMillis

        public long getTimeInMillis()
      • printStates

        public static void printStates​(java.util.List<SystemState> states)
      • printStatesTo

        public static void printStatesTo​(java.util.List<SystemState> states,
                                         java.io.PrintStream stream)