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

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

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

Histogram.getNumberOfSignificantValueDigits介绍

暂无

代码示例

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

@Override
public synchronized int getNumberOfSignificantValueDigits() {
  return super.getNumberOfSignificantValueDigits();
}

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

/**
 * Create a reservoir with a user-specified recorder.
 *
 * @param recorder Recorder to use
 */
public HdrHistogramReservoir(Recorder recorder) {
  this.recorder = recorder;
  /*
   * Start by flipping the recorder's interval histogram.
   * - it starts our counting at zero. Arguably this might be a bad thing if you wanted to feed in
   *   a recorder that already had some measurements? But that seems crazy.
   * - intervalHistogram can be nonnull.
   * - it lets us figure out the number of significant digits to use in runningTotals.
   */
  intervalHistogram = recorder.getIntervalHistogram();
  runningTotals = new Histogram(intervalHistogram.getNumberOfSignificantValueDigits());
}

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

activeHistogram.getLowestDiscernibleValue(),
      activeHistogram.getHighestTrackableValue(),
      activeHistogram.getNumberOfSignificantValueDigits());
} else {
  inactiveHistogram = new InternalConcurrentHistogram(
      instanceId,
      activeHistogram.getNumberOfSignificantValueDigits());

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

@Override
public synchronized int getNumberOfSignificantValueDigits() {
  return super.getNumberOfSignificantValueDigits();
}

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

public DeltaHdrHistogramReservoir copySettings() {
  return new DeltaHdrHistogramReservoir(this.metricName, intervalHistogram.getNumberOfSignificantValueDigits());
}

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

public static Histogram createNonConcurrentCopy(Histogram source) {
  if (source instanceof ConcurrentHistogram) {
    return new Histogram(source.getNumberOfSignificantValueDigits());
  } else if (source instanceof AtomicHistogram) {
    return new Histogram(
        source.getLowestDiscernibleValue(),
        source.getHighestTrackableValue(),
        source.getNumberOfSignificantValueDigits()
    );
  } else {
    throw new IllegalArgumentException("Unsupported histogram class " + source.getClass());
  }
}

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

public static Histogram createNonConcurrentCopy(Histogram source) {
  if (source instanceof ConcurrentHistogram) {
    return new Histogram(source.getNumberOfSignificantValueDigits());
  } else if (source instanceof AtomicHistogram) {
    return new Histogram(
        source.getLowestDiscernibleValue(),
        source.getHighestTrackableValue(),
        source.getNumberOfSignificantValueDigits()
    );
  } else {
    throw new IllegalArgumentException("Unsupported histogram class " + source.getClass());
  }
}

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

public LatencyStatsReservoir(LatencyStats stats) {
  this.stats = stats;
  intervalHistogram = stats.getIntervalHistogram();
  runningTotals = new Histogram(intervalHistogram.getNumberOfSignificantValueDigits());
}

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

/**
 * Create a reservoir with a user-specified recorder.
 *
 * @param recorder Recorder to use
 */
public HdrHistogramReservoir(Recorder recorder) {
  this.recorder = recorder;
  /*
   * Start by flipping the recorder's interval histogram.
   * - it starts our counting at zero. Arguably this might be a bad thing if you wanted to feed in
   *   a recorder that already had some measurements? But that seems crazy.
   * - intervalHistogram can be nonnull.
   * - it lets us figure out the number of significant digits to use in runningTotals.
   */
  intervalHistogram = recorder.getIntervalHistogram();
  runningTotals = new Histogram(intervalHistogram.getNumberOfSignificantValueDigits());
}

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

/**
 * Create a reservoir with a user-specified recorder.
 *
 * @param recorder Recorder to use
 */
public HdrHistogramReservoir(Recorder recorder) {
  this.recorder = recorder;
  /*
   * Start by flipping the recorder's interval histogram.
   * - it starts our counting at zero. Arguably this might be a bad thing if you wanted to feed in
   *   a recorder that already had some measurements? But that seems crazy.
   * - intervalHistogram can be nonnull.
   * - it lets us figure out the number of significant digits to use in runningTotals.
   */
  intervalHistogram = recorder.getIntervalHistogram();
  runningTotals = new Histogram(intervalHistogram.getNumberOfSignificantValueDigits());
}

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

/**
 * Create a reservoir with a default recorder. This recorder should be suitable for most usage.
 *
 * @param name the name to give to the reservoir, for logging purposes
 * @param significantDigits how many significant digits to track in the reservoir
 */
public DeltaHdrHistogramReservoir(String name, int significantDigits) {
  this.metricName = name;
  this.recorder = new Recorder(significantDigits);
  /*
   * Start by flipping the recorder's interval histogram.
   * - it starts our counting at zero. Arguably this might be a bad thing if you wanted to feed in
   *   a recorder that already had some measurements? But that seems crazy.
   * - intervalHistogram can be nonnull.
   * - it lets us figure out the number of significant digits to use in runningTotals.
   */
  intervalHistogram = recorder.getIntervalHistogram();
  lastHistogram = new Histogram(intervalHistogram.getNumberOfSignificantValueDigits());
}

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

activeHistogram.getLowestDiscernibleValue(),
      activeHistogram.getHighestTrackableValue(),
      activeHistogram.getNumberOfSignificantValueDigits());
} else {
  inactiveHistogram = new InternalConcurrentHistogram(
      instanceId,
      activeHistogram.getNumberOfSignificantValueDigits());

代码示例来源:origin: com.hazelcast.simulator/simulator

histogram.getLowestDiscernibleValue(),
histogram.getHighestTrackableValue(),
histogram.getNumberOfSignificantValueDigits());

相关文章