Interface ProfileMonitor

All Superinterfaces:
Comparable<ProfileMonitor>
All Known Implementing Classes:
AbstractProfileMonitor, JamonMonitor, SimpleProfileMonitor

public interface ProfileMonitor extends Comparable<ProfileMonitor>
The Interface ProfileMonitor.
  • Method Details

    • getMonitors

      ProfileMonitor[] getMonitors()
      Gets the monitors.
      Returns:
      the monitors
    • start

      void start()
      Start.
    • stop

      void stop()
      Stop.
    • reset

      void reset()
      Reset.
    • getLabel

      String getLabel()
      Gets the label.
      Returns:
      the label
    • add

      void add(double value)
      Normally this method should be synchronized. But we waive it with the risk that the measured time may be slightly wrong.
      Parameters:
      value - the value
    • getTotal

      double getTotal()
      Gets the total.
      Returns:
      the total
    • getLastValue

      double getLastValue()
      Gets the last value.
      Returns:
      the last value (in ms)
    • getLastTime

      String getLastTime()
      Gets the last value as time string. It should return the same result as getLastValue() but in a human readable format.
      Returns:
      the last time (e.g. "42 seconds")
      Since:
      1.4.2
    • getMax

      double getMax()
      Gets the max.
      Returns:
      the max
    • getMin

      double getMin()
      Gets the min.
      Returns:
      the min
    • getHits

      int getHits()
      Gets the hits.
      Returns:
      the hits
    • getAvg

      double getAvg()
      Gets the avg.
      Returns:
      the avg
    • toShortString

      String toShortString()
      To short string.
      Returns:
      the string
    • toCsvString

      String toCsvString()
      To csv string.
      Returns:
      the string
    • toCsvHeadline

      String toCsvHeadline()
      To csv headline.
      Returns:
      the string
    • getActive

      double getActive()
      Gets the active.
      Returns:
      the active
    • getAvgActive

      double getAvgActive()
      Gets the avg active.
      Returns:
      the avg active
    • getMaxActive

      double getMaxActive()
      Gets the max active.
      Returns:
      the max active
    • getFirstAccess

      Date getFirstAccess()
      Gets the first access.
      Returns:
      the first access
    • getLastAccess

      Date getLastAccess()
      Gets the last access.
      Returns:
      the last access
    • getUnits

      String getUnits()
      Gets the units.
      Returns:
      the units