Class TaskPerformanceInformation

java.lang.Object
edu.tufts.hrilab.vision.reflection.TaskPerformanceInformation
All Implemented Interfaces:
Serializable

public class TaskPerformanceInformation extends Object implements 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 Details

    • TaskPerformanceInformation

      public TaskPerformanceInformation(String taskName)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setPrintStats

      public static void setPrintStats(boolean printFlag)
    • getHardware

      public ArrayList<String> 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

      public void setHardware(ArrayList<String> hardware)
    • 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

      public boolean print(String filenamePath)