|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.timeline.TimeRange
org.javasimon.callback.timeline.StopwatchTimeRange
public class StopwatchTimeRange
Stopwatch statistics gathered for a specific time range. This class is not intended to be thread safe.
| Field Summary | |
|---|---|
private long |
counter
Counter (Number of values) |
private long |
last
Last value |
private long |
max
Minimum |
private long |
min
Minimum |
private long |
squareTotal
(Sum of square of all values) |
private long |
total
Total (Sum of all values) |
| Fields inherited from class org.javasimon.callback.timeline.TimeRange |
|---|
lastTimestamp |
| Constructor Summary | |
|---|---|
StopwatchTimeRange(long startTimestamp,
long endTimestamp)
Main constructor. |
|
| Method Summary | |
|---|---|
void |
addSplit(long timestampInMs,
long durationInNs)
Add stopwatch split information. |
private double |
computeMean()
Compute mean/average using total and counter |
long |
getCounter()
|
long |
getLast()
|
long |
getMax()
|
Double |
getMean()
Compute mean/average. |
long |
getMin()
|
Double |
getStandardDeviation()
Compute standard deviation. |
long |
getTotal()
|
Double |
getVariance()
Compute variance. |
protected StringBuilder |
toStringBuilder(StringBuilder stringBuilder)
|
| Methods inherited from class org.javasimon.callback.timeline.TimeRange |
|---|
containsTimestamp, getEndTimestamp, getStartTimestamp, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private long last
private long min
private long max
private long total
private long squareTotal
private long counter
| Constructor Detail |
|---|
public StopwatchTimeRange(long startTimestamp,
long endTimestamp)
| Method Detail |
|---|
public void addSplit(long timestampInMs,
long durationInNs)
timestampInMs - When the split started, expressed in millisecondsdurationInNs - How long the split was, expressed in nanosecondspublic long getLast()
public long getMin()
public long getMax()
public long getTotal()
public long getCounter()
private double computeMean()
public Double getMean()
public Double getVariance()
public Double getStandardDeviation()
protected StringBuilder toStringBuilder(StringBuilder stringBuilder)
toStringBuilder in class TimeRange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||