jeco.dmm.simulator
Class DMMLogger
java.lang.Object
jeco.dmm.simulator.DMMLogger
public class DMMLogger
- extends java.lang.Object
How we want to use it...
- executionTime is increased for each instruction executed
* real: Only the instructions that are going to be indeed executed in the real DMMLibrary.
- memoryAccesses is increased in every access to a non basic type variable.
* Real: Only for those accesses that are executed in the original code.
- memoryUsage is increased when we call to the constructors or when we
deallocate blocks, and can be decreased when we allocate blocks from
the free lists.
- memUsedByDMMSupport: In this variable we store the memory needed by the structures that implement the
dynamic memory manager.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DMMLogger
public DMMLogger()
reset
public static void reset()
resetReliableSystem
public static void resetReliableSystem()
addInfinity
public static void addInfinity()
updateData
public static void updateData(long incExecutionTime,
long incVarAccesses,
long incMemoryUsedInBytes,
long numMemAccesses)
redoDataReal
public static void redoDataReal(long incExecutionTime,
long incVarAccesses,
long incMemoryUsedInBytes,
long numMemAccesses)
addMemUsedInHeap
public static void addMemUsedInHeap(long memUsed)
addMemUsedByDMMSupport
public static void addMemUsedByDMMSupport(long memUsed)
addMemUsedByReliableSystem
public static void addMemUsedByReliableSystem(long memUsed)
addMemoryAccessedByReliableSystem
public static void addMemoryAccessedByReliableSystem(long accesses)
addExecutionTimeReliableSystem
public static void addExecutionTimeReliableSystem(long executionTime)
getExecutionTimeReal
public static double getExecutionTimeReal()
- GETTERS
getMemoryAccessesReal
public static double getMemoryAccessesReal()
getMemoryUsedInBytesReal
public static double getMemoryUsedInBytesReal()
getMemoryUsedInHeap
public static double getMemoryUsedInHeap()
getVarAccessesReal
public static double getVarAccessesReal()
getMemUsedByDMMSupport
public static double getMemUsedByDMMSupport()
getMemoryUsedByReliableSystem
public static double getMemoryUsedByReliableSystem()
getMemoryAccessedByReliableSystem
public static double getMemoryAccessedByReliableSystem()
getExecutionTimeReliableSystem
public static double getExecutionTimeReliableSystem()
printAllInfo
public static void printAllInfo()
printRealInfo
public static void printRealInfo()