public final class TimingStatistics extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
TimingStatistics.Call
A call object that can update performance metrics.
|
class |
TimingStatistics.LeadTimeCall
Ignores counting the performance metrics.
|
Constructor and Description |
---|
TimingStatistics()
Creates a new instance of CallStats
|
TimingStatistics(int nCalls,
long minTime,
long maxTime,
long sumTime,
double sumSquaredTime) |
Modifier and Type | Method and Description |
---|---|
long |
getMaxTime() |
long |
getMeanTime() |
long |
getMinTime() |
int |
getNCalls() |
long |
getStdDevTime() |
double |
getSumSquaredTime() |
long |
getSumTime() |
TimingStatistics.Call |
newCall(long leadTimeUsec)
Ignores counting the performance metrics until leadTimeIsFinished The caller should enough time for the JIT
to warm up.
|
String |
toString() |
public TimingStatistics()
public TimingStatistics(int nCalls, long minTime, long maxTime, long sumTime, double sumSquaredTime)
public int getNCalls()
public long getMinTime()
public long getMaxTime()
public long getSumTime()
public double getSumSquaredTime()
public long getMeanTime()
public long getStdDevTime()
public TimingStatistics.Call newCall(long leadTimeUsec)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.