public class Metric extends Object
Metric for perf stats collection.
Constructor and Description |
---|
Metric(String name,
boolean success) |
Metric(String name,
int count,
int elapsedNs,
boolean success) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCount() |
long |
getElapsedNs() |
long |
getMaxNs() |
long |
getMinNs() |
String |
getName() |
int |
hashCode() |
boolean |
isSuccess() |
void |
record(long elapsedNs) |
String |
toString() |
public Metric(String name, int count, int elapsedNs, boolean success)
public Metric(String name, boolean success)
public String getName()
public int getCount()
public long getElapsedNs()
public long getMinNs()
public long getMaxNs()
public boolean isSuccess()
public void record(long elapsedNs)