本文整理了Java中org.HdrHistogram.Histogram.getCountBetweenValues()
方法的一些代码示例,展示了Histogram.getCountBetweenValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getCountBetweenValues()
方法的具体详情如下:
包路径:org.HdrHistogram.Histogram
类名称:Histogram
方法名:getCountBetweenValues
暂无
代码示例来源:origin: HdrHistogram/HdrHistogram
@Override
public synchronized long getCountBetweenValues(final long lowValue, final long highValue) throws ArrayIndexOutOfBoundsException {
return super.getCountBetweenValues(lowValue, highValue);
}
代码示例来源:origin: org.hdrhistogram/HdrHistogram
@Override
public synchronized long getCountBetweenValues(final long lowValue, final long highValue) throws ArrayIndexOutOfBoundsException {
return super.getCountBetweenValues(lowValue, highValue);
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "10ms to 50ms")
public long get10msTo50msPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(50));
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "10s to 1m")
public long get10sTo1mPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.SECONDS.toNanos(10), TimeUnit.MINUTES.toNanos(1));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "10ms to 50ms")
public long get10msTo50msPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(50));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "> 1m")
public long getGreaterThan1mPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MINUTES.toNanos(1), Long.MAX_VALUE);
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "< 10ms")
public long getLessThan10msPauses()
{
return snapshot.get().getCountBetweenValues(0, TimeUnit.MILLISECONDS.toNanos(10));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "50ms to 500ms")
public long get50msTo500msPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(50), TimeUnit.MILLISECONDS.toNanos(500));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "500ms to 1s")
public long get500msTo1sPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(500), TimeUnit.SECONDS.toNanos(1));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "< 10ms")
public long getLessThan10msPauses()
{
return snapshot.get().getCountBetweenValues(0, TimeUnit.MILLISECONDS.toNanos(10));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "10s to 1m")
public long get10sTo1mPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.SECONDS.toNanos(10), TimeUnit.MINUTES.toNanos(1));
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "1s to 10s")
public long get1sTo10sPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.SECONDS.toNanos(1), TimeUnit.SECONDS.toNanos(10));
}
代码示例来源:origin: airlift/airlift
@Managed(description = "1s to 10s")
public long get1sTo10sPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.SECONDS.toNanos(1), TimeUnit.SECONDS.toNanos(10));
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "500ms to 1s")
public long get500msTo1sPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(500), TimeUnit.SECONDS.toNanos(1));
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "> 1m")
public long getGreaterThan1mPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MINUTES.toNanos(1), Long.MAX_VALUE);
}
代码示例来源:origin: io.airlift/stats
@Managed(description = "50ms to 500ms")
public long get50msTo500msPauses()
{
return snapshot.get().getCountBetweenValues(TimeUnit.MILLISECONDS.toNanos(50), TimeUnit.MILLISECONDS.toNanos(500));
}
代码示例来源:origin: com.hazelcast.simulator/simulator
private static List<ArrayList<Long>> calculateLinearHeatMap(List<Histogram> histograms, double latencyWindowSize,
long totalMaxLatency) {
int histogramCount = histograms.size();
ArrayList<ArrayList<Long>> heatmap = new ArrayList<ArrayList<Long>>(histogramCount);
for (int i = 0; i < histogramCount; i++) {
heatmap.add(new ArrayList<Long>(DIMENSION_Y));
}
for (int yPos = 1; yPos <= DIMENSION_Y; yPos++) {
long lowValue = (yPos == 1) ? 0 : round((yPos - 1) * latencyWindowSize);
long highValue = (yPos == DIMENSION_Y) ? totalMaxLatency : round(yPos * latencyWindowSize);
long maxValue = Long.MIN_VALUE;
for (int histogramIndex = 0; histogramIndex < histogramCount; histogramIndex++) {
Histogram histogram = histograms.get(histogramIndex);
long latencyCount = histogram.getCountBetweenValues(lowValue, highValue);
if (latencyCount > maxValue) {
maxValue = latencyCount;
}
heatmap.get(histogramIndex).add(latencyCount);
}
echo("%4d: lowValue: %d, highValue: %d, maxValue: %d", yPos, lowValue, highValue, maxValue);
}
return heatmap;
}
内容来源于网络,如有侵权,请联系作者删除!