public Collection points()

in harness/src/main/java/org/apache/geode/perftest/yardstick/hdrhistogram/HdrHistogramProbe.java [119:146]


  public Collection<BenchmarkProbePoint> points() {
    final Histogram aggregate = getHistogram();
    if (warmUpFinished.compareAndSet(false, true)) {
      reset();
    }

    final double mean = aggregate.getMean();
    final long percentile99 = aggregate.getValueAtPercentile(99);

    final BenchmarkProbePoint point =
        new BenchmarkProbePoint(aggregate.getEndTimeStamp(), new double[] {mean, percentile99});

    for (int r = 0; r < 5; ++r) {
      try {
        logger.info("Saving histogram. r={}", r);
        histogramConsumer.accept(aggregate);
      } catch (Exception e) {
        logger.error("Failed to save histogram. aggregate={}", aggregate.getTag(), e);
        try {
          Thread.sleep(SECONDS.toMillis(1));
        } catch (InterruptedException ignored) {
        }
        continue;
      }
      break;
    }
    return Collections.singleton(point);
  }