From 01a126e4aae41adb7f4c1e55d670456b1e1411e2 Mon Sep 17 00:00:00 2001 From: aman-bansal Date: Mon, 1 Feb 2021 12:25:36 +0530 Subject: [PATCH] adding comment for Clear function --- z/histogram.go | 1 + 1 file changed, 1 insertion(+) diff --git a/z/histogram.go b/z/histogram.go index 25d57516..6c9a85f3 100644 --- a/z/histogram.go +++ b/z/histogram.go @@ -175,6 +175,7 @@ func (histogram *HistogramData) Percentile(p float64) float64 { return histogram.Bounds[len(histogram.Bounds)-1] } +// Clear reset the histogram. Helpful in situations where we need to reset the metrics func (histogram *HistogramData) Clear() { if histogram == nil { return