|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.perf4j.TimingStatistics
public class TimingStatistics
TimingStatistics represent a set of statistical measures over a set of timing data, such as a collection of StopWatch instances.
Constructor Summary | |
---|---|
TimingStatistics()
Default constructor allows you to set performance statistics later using the setter methods. |
|
TimingStatistics(java.util.Collection<StopWatch> timeRecords)
This constructor calculates the mean, standard deviation, maximum, minimum and count values of a collection of StopWatch instances that represent logged code execution times. |
|
TimingStatistics(double mean,
double standardDeviation,
long max,
long min,
int count)
Creates a TimingStatistics object with the specified data. |
Method Summary | |
---|---|
TimingStatistics |
clone()
|
boolean |
equals(java.lang.Object o)
|
int |
getCount()
|
long |
getMax()
|
double |
getMean()
|
long |
getMin()
|
double |
getStandardDeviation()
|
int |
hashCode()
|
void |
setCount(int count)
|
void |
setMax(long max)
|
void |
setMean(double mean)
|
void |
setMin(long min)
|
void |
setStandardDeviation(double standardDeviation)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimingStatistics()
public TimingStatistics(double mean, double standardDeviation, long max, long min, int count)
mean
- The mean execution time, in ms, of the underlying time records.standardDeviation
- The standard deviation, in ms, of the underlying time records.max
- The maximum value in ms of the logged execution times.min
- The minimum value in ms of the logged execution times.count
- The total number of executions that were timed.public TimingStatistics(java.util.Collection<StopWatch> timeRecords)
timeRecords
- The time records to aggregate.Method Detail |
---|
public double getMean()
public void setMean(double mean)
public double getStandardDeviation()
public void setStandardDeviation(double standardDeviation)
public long getMax()
public void setMax(long max)
public long getMin()
public void setMin(long min)
public int getCount()
public void setCount(int count)
public java.lang.String toString()
toString
in class java.lang.Object
public TimingStatistics clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |