Class AbstractEngineStopwatch

  • All Implemented Interfaces:
    EngineStopwatch

    public abstract class AbstractEngineStopwatch
    extends Object
    implements EngineStopwatch
    An object to track performance of an analysis engine
    • Field Detail

    • Constructor Detail

      • AbstractEngineStopwatch

        protected AbstractEngineStopwatch()
    • Method Detail

      • getNumberOfCategories

        protected abstract int getNumberOfCategories()
        Returns:
        the number of distinct categories timed by this object
      • getCategoryNames

        protected abstract String[] getCategoryNames()
        Returns:
        an array of Strings that represent names of the categories tracked
      • report

        public final String report()
        Specified by:
        report in interface EngineStopwatch
        Returns:
        a String representation of the information in this object
      • start

        public void start​(byte category)
        Description copied from interface: EngineStopwatch
        start timing for some category
        Specified by:
        start in interface EngineStopwatch
      • stop

        public void stop​(byte category)
        Description copied from interface: EngineStopwatch
        stop timing for some category
        Specified by:
        stop in interface EngineStopwatch
      • getTimer

        public StopwatchGC getTimer​(byte category)
        Description copied from interface: EngineStopwatch
        Returns access to class encapsulating time events results, related to the given category.
        Specified by:
        getTimer in interface EngineStopwatch