Interface ProfileMonitor
- All Superinterfaces:
Comparable<ProfileMonitor>
- All Known Implementing Classes:
AbstractProfileMonitor,JamonMonitor,SimpleProfileMonitor
The Interface ProfileMonitor.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double value) Normally this method should be synchronized.doubleGets the active.doublegetAvg()Gets the avg.doubleGets the avg active.Gets the first access.intgetHits()Gets the hits.getLabel()Gets the label.Gets the last access.Gets the last value as time string.doubleGets the last value.doublegetMax()Gets the max.doubleGets the max active.doublegetMin()Gets the min.Gets the monitors.doublegetTotal()Gets the total.getUnits()Gets the units.voidreset()Reset.voidstart()Start.voidstop()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
-