|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ecyrd.speed4j.log.CollectedStatistics
public class CollectedStatistics
Represents a statistics item which contains data which has been collected over time. It keeps track of maximum and minimum times, as well as a count, average and standard deviation.
Internally, it keeps the nanosecond accuracy, though most JVMs and operating systems can usually go down to microseconds only. However, all API calls return milliseconds (as doubles), as it's the most useful figure.
| Constructor Summary | |
|---|---|
CollectedStatistics()
|
|
| Method Summary | |
|---|---|
void |
add(StopWatch sw)
Add a StopWatch to the statistics. |
double |
getAverageMS()
Returns the average of the StopWatches recorded. |
int |
getInvocations()
Returns the number of stopwatches. |
double |
getMax()
Returns the slowest StopWatch time recorded. |
double |
getMin()
Returns the fastest StopWatch time recorded. |
double |
getPercentile(int percentile)
Get the nth percentile. |
double |
getStdDev()
Returns the standard deviation of all StopWatches recorded. |
double |
variance()
Returns the variance of all StopWatches recorded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectedStatistics()
| Method Detail |
|---|
public void add(StopWatch sw)
sw - StopWatch to add.public int getInvocations()
public double getMin()
public double getMax()
public double getAverageMS()
public double getStdDev()
public double variance()
public double getPercentile(int percentile)
percentile - Percentile to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||