@@ -0,0 +1,1073 @@
+package net.uncontended.precipice.metrics.histogram;%0A%0Aimport net.uncontended.precipice.metrics.AbstractMetrics;%0Aimport org.HdrHistogram.Histogram;%0A%0Apublic class TotalHistogram%3CT extends Enum%3CT%3E%3E extends AbstractMetrics%3CT%3E implements WritableLatency%3CT%3E, PartitionedHistogram%3CT%3E %7B%0A%0A    private final AtomicHistogram%3CT%3E histogram;%0A%0A    public TotalHistogram(AtomicHistogram%3CT%3E histogram) %7B%0A        super(histogram.getMetricClazz());%0A        this.histogram = histogram;%0A    %7D%0A%0A    public TotalHistogram(Class%3CT%3E clazz) %7B%0A        super(clazz);%0A        histogram = new AtomicHistogram%3C%3E(clazz);%0A    %7D%0A%0A    @Override%0A    public void record(T result, long number, long nanoLatency) %7B%0A        histogram.record(result, number, nanoLatency);%0A    %7D%0A%0A    @Override%0A    public Histogram getHistogram(T metric) %7B%0A        return histogram.getHistogram(metric);%0A    %7D%0A%0A    @Override%0A    public void reset() %7B%0A        histogram.reset();%0A    %7D%0A%0A    @Override%0A    public void write(T result, long number, long nanoLatency, long nanoTime) %7B%0A        record(result, number, nanoLatency);%0A    %7D%0A%7D%0A

Add total histogram