Class TaskPerformanceInformation
java.lang.Object
edu.tufts.hrilab.vision.reflection.TaskPerformanceInformation
- All Implemented Interfaces:
Serializable
this class is currently used to keep track of performance requirements,
(hardware, memory, etc..), and runtime statistics (looptime, etc..) for
vision related tasks. this is currently tailored to vision related tasks, but
could potentially be generalized to use in other DIARC components as a means of
keeping track of what a server can introspect on.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
long
long
long
long
long
long
long
boolean
void
setHardware
(ArrayList<String> hardware) static void
setPrintStats
(boolean printFlag) void
setTimeOfLastClientUse
(long timeOfLastClientUse) void
start()
toString()
void
update
(long looptime, boolean taskSuccess, int numProcessedObjects) void
updateExperimentStats
(boolean dataProcessed)
-
Constructor Details
-
TaskPerformanceInformation
-
-
Method Details
-
toString
-
setPrintStats
public static void setPrintStats(boolean printFlag) -
getHardware
-
getLooptime
public long getLooptime() -
getMemory
public long getMemory() -
getTimeOfLastClientUse
public long getTimeOfLastClientUse() -
getTimeOfLastResult
public long getTimeOfLastResult() -
getNumProcessedObjects
public long getNumProcessedObjects() -
getTotalProcessedObjects
public long getTotalProcessedObjects() -
getNumIterationsSinceLastStart
public long getNumIterationsSinceLastStart() -
setHardware
-
setTimeOfLastClientUse
public void setTimeOfLastClientUse(long timeOfLastClientUse) -
start
public void start() -
update
public void update(long looptime, boolean taskSuccess, int numProcessedObjects) -
updateExperimentStats
public void updateExperimentStats(boolean dataProcessed) -
finish
public void finish() -
print
-