Interface ProfileMonitor
- All Superinterfaces:
Comparable<ProfileMonitor>
- All Known Implementing Classes:
AbstractProfileMonitor
,JamonMonitor
,SimpleProfileMonitor
The Interface ProfileMonitor.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double value) Normally this method should be synchronized.double
Gets the active.double
getAvg()
Gets the avg.double
Gets the avg active.Gets the first access.int
getHits()
Gets the hits.getLabel()
Gets the label.Gets the last access.Gets the last value as time string.double
Gets the last value.double
getMax()
Gets the max.double
Gets the max active.double
getMin()
Gets the min.Gets the monitors.double
getTotal()
Gets the total.getUnits()
Gets the units.void
reset()
Reset.void
start()
Start.void
stop()
Stop.To csv headline.To csv string.To short string.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getMonitors
-
start
void start()Start. -
stop
void stop()Stop. -
reset
void reset()Reset. -
getLabel
-
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 asgetLastValue()
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
-
toCsvString
-
toCsvHeadline
-
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
-
getLastAccess
-
getUnits
-