private void printHistogram(final Histogram histogram) {
        printIfEnabled(MetricAttribute.COUNT,
            String.format(this.locale, "             count = %d", histogram.getCount()));
        final Snapshot snapshot = histogram.getSnapshot();
        printIfEnabled(MetricAttribute.MIN, String.format(this.locale, "               min = %d", snapshot.getMin()));
        printIfEnabled(MetricAttribute.MAX, String.format(this.locale, "               max = %d", snapshot.getMax()));
        printIfEnabled(MetricAttribute.MEAN,
            String.format(this.locale, "              mean = %2.2f", snapshot.getMean()));
        printIfEnabled(MetricAttribute.STDDEV,
            String.format(this.locale, "            stddev = %2.2f", snapshot.getStdDev()));
        printIfEnabled(MetricAttribute.P50,
            String.format(this.locale, "            median = %2.2f", snapshot.getMedian()));
        printIfEnabled(MetricAttribute.P75,
            String.format(this.locale, "              75%% <= %2.2f", snapshot.get75thPercentile()));
        printIfEnabled(MetricAttribute.P95,
            String.format(this.locale, "              95%% <= %2.2f", snapshot.get95thPercentile()));
        printIfEnabled(MetricAttribute.P98,
            String.format(this.locale, "              98%% <= %2.2f", snapshot.get98thPercentile()));
        printIfEnabled(MetricAttribute.P99,
            String.format(this.locale, "              99%% <= %2.2f", snapshot.get99thPercentile()));
        printIfEnabled(MetricAttribute.P999,
            String.format(this.locale, "            99.9%% <= %2.2f", snapshot.get999thPercentile()));
    }
Builds a {@link MetricReporter} with the given properties.

@return a {@link MetricReporter}
jraft-core/src/main/java/com/alipay/sofa/jraft/util/MetricReporter.java