org.HdrHistogram.Histogram.getMinValue()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.HdrHistogram.Histogram.getMinValue()方法的一些代码示例,展示了Histogram.getMinValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Histogram.getMinValue()方法的具体详情如下:
包路径:org.HdrHistogram.Histogram
类名称:Histogram
方法名:getMinValue

Histogram.getMinValue介绍

暂无

代码示例

代码示例来源:origin: HdrHistogram/HdrHistogram

@Override
public synchronized long getMinValue() {
  return super.getMinValue();
}

代码示例来源:origin: networknt/light-4j

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: apache/storm

public double getMinLatency(TimeUnit unit) {
  return convert(histo.getMinValue(), TimeUnit.NANOSECONDS, unit);
}

代码示例来源:origin: lettuce-io/lettuce-core

private CommandLatency getMetric(Histogram histogram) {
  Map<Double, Long> percentiles = getPercentiles(histogram);
  TimeUnit timeUnit = options.targetUnit();
  return new CommandLatency(timeUnit.convert(histogram.getMinValue(), TimeUnit.NANOSECONDS), timeUnit.convert(
      histogram.getMaxValue(), TimeUnit.NANOSECONDS), percentiles);
}

代码示例来源:origin: brianfrankcooper/YCSB

/**
 * This is called periodically from the StatusThread. There's a single
 * StatusThread per Client process. We optionally serialize the interval to
 * log on this opportunity.
 *
 * @see com.yahoo.ycsb.measurements.OneMeasurement#getSummary()
 */
@Override
public String getSummary() {
 Histogram intervalHistogram = getIntervalHistogramAndAccumulate();
 // we use the summary interval as the histogram file interval.
 if (histogramLogWriter != null) {
  histogramLogWriter.outputIntervalHistogram(intervalHistogram);
 }
 DecimalFormat d = new DecimalFormat("#.##");
 return "[" + getName() + ": Count=" + intervalHistogram.getTotalCount() + ", Max="
   + intervalHistogram.getMaxValue() + ", Min=" + intervalHistogram.getMinValue() + ", Avg="
   + d.format(intervalHistogram.getMean()) + ", 90=" + d.format(intervalHistogram.getValueAtPercentile(90))
   + ", 99=" + d.format(intervalHistogram.getValueAtPercentile(99)) + ", 99.9="
   + d.format(intervalHistogram.getValueAtPercentile(99.9)) + ", 99.99="
   + d.format(intervalHistogram.getValueAtPercentile(99.99)) + "]";
}

代码示例来源:origin: brianfrankcooper/YCSB

exporter.write(getName(), "MinLatency(us)", totalHistogram.getMinValue());
exporter.write(getName(), "MaxLatency(us)", totalHistogram.getMaxValue());

代码示例来源:origin: neo4j-contrib/neo4j-apoc-procedures

@UserAggregationResult
  public Map<String,Number> result() {
    long totalCount = values != null ? values.getTotalCount() : doubles.getTotalCount();
    boolean empty = totalCount == 0;
    Map<String,Number> result = new LinkedHashMap<>(percentiles.size()+6);
    result.put("min",values != null ? (Number)values.getMinValue() : (Number)doubles.getMinValue());
    result.put("minNonZero",values != null ? (Number)values.getMinNonZeroValue() : (Number)doubles.getMinNonZeroValue());
    result.put("max",values != null ? (Number)values.getMaxValue() : (Number)doubles.getMaxValue());
    result.put("total",totalCount);
    result.put("mean",values != null ? values.getMean() : doubles.getMean());
    result.put("stdev",values != null ? values.getStdDeviation() : doubles.getStdDeviation());
    for (Double percentile : percentiles) {
      if (percentile != null && !empty) {
        if (values != null) {
          result.put(percentile.toString(), values.getValueAtPercentile(percentile * 100D));
        } else {
          result.put(percentile.toString(), doubles.getValueAtPercentile(percentile * 100D));
        }
      }
    }
    return result;
  }
}

代码示例来源:origin: org.mpierce.metrics.reservoir/hdrhistogram-metrics-reservoir

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: com.datastax.oss/java-driver-core-shaded

@Override
public long getMin() {
 return histogram.getMinValue() * 1000;
}

代码示例来源:origin: org.hdrhistogram/HdrHistogram

@Override
public synchronized long getMinValue() {
  return super.getMinValue();
}

代码示例来源:origin: io.reactivesocket/reactivesocket-stats-servo

@Override
  public Long getValue() {
    return histogram.getMinValue();
  }
}

代码示例来源:origin: HotelsDotCom/styx

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: vladimir-bukhtoyarov/rolling-metrics

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: org.attribyte/essem-reporter

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: co.paralleluniverse/quasar-core

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: com.networknt/metrics

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: com.hotels.styx/styx-api

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: io.engineblock/eb-api

@Override
public long getMin() {
  return histogram.getMinValue();
}

代码示例来源:origin: io.lettuce/lettuce-core

private CommandLatency getMetric(Histogram histogram) {
  Map<Double, Long> percentiles = getPercentiles(histogram);
  TimeUnit timeUnit = options.targetUnit();
  return new CommandLatency(timeUnit.convert(histogram.getMinValue(), TimeUnit.NANOSECONDS), timeUnit.convert(
      histogram.getMaxValue(), TimeUnit.NANOSECONDS), percentiles);
}

代码示例来源:origin: com.github.vladimir-bukhtoyarov/rolling-metrics

static Snapshot takeSmartSnapshot(final double[] predefinedQuantiles, Histogram histogram) {
  final long max = histogram.getMaxValue();
  final long min = histogram.getMinValue();
  final double mean = histogram.getMean();
  final double median = histogram.getValueAtPercentile(50.0);
  final double stdDeviation = histogram.getStdDeviation();
  final double[] values = new double[predefinedQuantiles.length];
  for (int i = 0; i < predefinedQuantiles.length; i++) {
    double quantile = predefinedQuantiles[i];
    double percentile = quantile * 100.0;
    values[i] = histogram.getValueAtPercentile(percentile);
  }
  return createSmartSnapshot(predefinedQuantiles, max, min, mean, median, stdDeviation, values);
}

相关文章