Package org.tensorics.core.util
Class SystemState
- java.lang.Object
-
- org.tensorics.core.util.SystemState
-
public final class SystemState extends java.lang.ObjectTo be used for testing. Will contain the actual state of the system and provides methods to print it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemStatecurrentTimeAfterGc()static SystemStatecurrentTimeBeforeGc()longgetMemoryUsageInB()longgetMemoryUsageInKB()longgetTimeInMillis()static longmemoryUsageInByte()SystemStateminus(SystemState other)static voidprintStates(java.util.List<SystemState> states)static voidprintStatesTo(java.util.List<SystemState> states, java.io.PrintStream stream)voidprintTo(java.io.PrintStream stream)voidprintToStdOut()
-
-
-
Method Detail
-
currentTimeAfterGc
public static SystemState currentTimeAfterGc()
-
currentTimeBeforeGc
public static SystemState currentTimeBeforeGc()
-
memoryUsageInByte
public static long memoryUsageInByte()
-
minus
public SystemState minus(SystemState other)
-
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)
-
-