public class PerformanceStat extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
count |
protected String |
id |
protected long |
initTime |
protected long |
max |
protected long |
min |
protected boolean |
showIndividuals |
protected long |
startTime |
protected long |
sum |
protected long |
sumOfSquares |
Constructor and Description |
---|
PerformanceStat(String id) |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
report() |
void |
setShowIndividuals(boolean showIndividuals) |
static double |
standardDev(long sum,
long sumOfSquares,
long count)
Given the sum of the values, the sum of the squares of the values and the
number of values in a collection numbers, calculates the standard deviation
|
void |
startOp() |
void |
stopOp() |
protected long sum
protected long sumOfSquares
protected long count
protected long min
protected long max
protected long initTime
protected long startTime
protected String id
protected boolean showIndividuals
public PerformanceStat(String id)
public void init()
public void setShowIndividuals(boolean showIndividuals)
public void startOp()
public void stopOp()
public void report()
public static double standardDev(long sum, long sumOfSquares, long count)
sum
- The sum of the values.sumOfSquares
- The sum of the squares of the values.count
- The number of values.