Package org.tensorics.core.util
Class SystemState
- java.lang.Object
-
- org.tensorics.core.util.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemState
currentTimeAfterGc()
static SystemState
currentTimeBeforeGc()
long
getMemoryUsageInB()
long
getMemoryUsageInKB()
long
getTimeInMillis()
static long
memoryUsageInByte()
SystemState
minus(SystemState other)
static void
printStates(java.util.List<SystemState> states)
static void
printStatesTo(java.util.List<SystemState> states, java.io.PrintStream stream)
void
printTo(java.io.PrintStream stream)
void
printToStdOut()
-
-
-
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)
-
-