本文整理了Java中org.HdrHistogram.Histogram.logarithmicBucketValues()
方法的一些代码示例,展示了Histogram.logarithmicBucketValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.logarithmicBucketValues()
方法的具体详情如下:
包路径:org.HdrHistogram.Histogram
类名称:Histogram
方法名:logarithmicBucketValues
暂无
代码示例来源:origin: HdrHistogram/HdrHistogram
@Override
public synchronized LogarithmicBucketValues logarithmicBucketValues(final long valueUnitsInFirstBucket, final double logBase) {
return super.logarithmicBucketValues(valueUnitsInFirstBucket, logBase);
}
代码示例来源:origin: org.hdrhistogram/HdrHistogram
@Override
public synchronized LogarithmicBucketValues logarithmicBucketValues(final long valueUnitsInFirstBucket, final double logBase) {
return super.logarithmicBucketValues(valueUnitsInFirstBucket, logBase);
}
代码示例来源:origin: airlift/airlift
@Managed(description = "Per-bucket counts")
public Map<Double, Long> getCounts()
{
Map<Double, Long> result = new TreeMap<>();
for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) {
double median = (entry.getValueIteratedTo() + entry.getValueIteratedFrom()) / 2.0;
result.put(round(median / (double) TimeUnit.MILLISECONDS.toNanos(1), 2), entry.getCountAddedInThisIterationStep());
}
return result;
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "Per-bucket counts")
public Map<Double, Long> getCounts()
{
Map<Double, Long> result = new TreeMap<>();
for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) {
double median = (entry.getValueIteratedTo() + entry.getValueIteratedFrom()) / 2.0;
result.put(round(median / (double) TimeUnit.MILLISECONDS.toNanos(1), 2), entry.getCountAddedInThisIterationStep());
}
return result;
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "Per-bucket total pause time in s")
public Map<Double, Double> getSums()
{
long previous = 0;
Map<Double, Double> result = new TreeMap<>();
for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) {
double median = (entry.getValueIteratedTo() + entry.getValueIteratedFrom()) / 2.0;
long current = entry.getTotalValueToThisValue();
result.put(round(median / TimeUnit.MILLISECONDS.toNanos(1), 2), round((current - previous) * 1.0 / TimeUnit.SECONDS.toNanos(1), 2));
previous = current;
}
return result;
}
代码示例来源:origin: airlift/airlift
@Managed(description = "Per-bucket total pause time in s")
public Map<Double, Double> getSums()
{
long previous = 0;
Map<Double, Double> result = new TreeMap<>();
for (HistogramIterationValue entry : snapshot.get().logarithmicBucketValues(TimeUnit.MILLISECONDS.toNanos(1), 2)) {
double median = (entry.getValueIteratedTo() + entry.getValueIteratedFrom()) / 2.0;
long current = entry.getTotalValueToThisValue();
result.put(round(median / TimeUnit.MILLISECONDS.toNanos(1), 2), round((current - previous) * 1.0 / TimeUnit.SECONDS.toNanos(1), 2));
previous = current;
}
return result;
}
内容来源于网络,如有侵权,请联系作者删除!