Constructor and Description |
---|
Metrics(org.HdrHistogram.Histogram template) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintStream ps,
java.lang.String indent) |
void |
dumpHistograms(java.io.File dir,
java.lang.String prefix) |
java.util.Map<java.lang.String,org.HdrHistogram.Histogram> |
metrics() |
java.util.Map<java.lang.String,org.HdrHistogram.Histogram> |
metrics(java.lang.String prefix) |
void |
record(java.lang.String name,
long elapsed) |
void |
setConversion(double conversion) |
public java.util.Map<java.lang.String,org.HdrHistogram.Histogram> metrics()
public java.util.Map<java.lang.String,org.HdrHistogram.Histogram> metrics(java.lang.String prefix)
public void record(java.lang.String name, long elapsed)
public void dump(java.io.PrintStream ps, java.lang.String indent)
public void dumpHistograms(java.io.File dir, java.lang.String prefix)
public void setConversion(double conversion)
conversion
- This is used to divide the percentile values while dumping.
If you are using nano seconds to record and want to display the numbers in millis then conversion can be set to 1000000.
By default conversion is set to 1.