public static interface ODataContext.RuntimeMeasurement
Runtime measurements.
All times are in nanoseconds since some fixed but arbitrary time (perhaps in the future, so values may be negative).
System.nanoTime()
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Gets the class name.
|
long |
getMemoryStarted()
Gets the start heap memory used.
|
long |
getMemoryStopped()
Gets the stop heap memory used.
|
String |
getMethodName()
Gets the method name.
|
long |
getTimeStarted()
Gets the start time.
|
long |
getTimeStopped()
Gets the stop time.
|
void |
setClassName(String className)
Sets the class name.
|
void |
setMemoryStarted(long usedHeap)
Sets the start heap memory used.
|
void |
setMemoryStopped(long usedHeap)
Sets the stop heap memory used.
|
void |
setMethodName(String methodName)
Sets the method name.
|
void |
setTimeStarted(long timeStarted)
Sets the start time.
|
void |
setTimeStopped(long timeStopped)
Sets the stop time.
|
void setClassName(String className)
className
- the name of the class that is measuredString getClassName()
void setMethodName(String methodName)
methodName
- the name of the method that is measuredString getMethodName()
void setTimeStarted(long timeStarted)
timeStarted
- the start time in nanosecondsSystem.nanoTime()
long getTimeStarted()
System.nanoTime()
void setTimeStopped(long timeStopped)
timeStopped
- the stop time in nanosecondsSystem.nanoTime()
long getTimeStopped()
System.nanoTime()
void setMemoryStarted(long usedHeap)
usedHeap
- the start heap memory used in bytesManagementFactory
void setMemoryStopped(long usedHeap)
usedHeap
- the stop heap memory used in bytesManagementFactory
long getMemoryStarted()
ManagementFactory
long getMemoryStopped()
ManagementFactory
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.