mirror of
https://github.com/prometheus/prometheus
synced 2025-02-05 22:56:13 +00:00
The 'ToFloat' method on integer histograms currently allocates new memory each time it is called. This commit adds an optional *FloatHistogram parameter that can be used to reuse span and bucket slices. It is up to the caller to make sure the input float histogram is not used anymore after the call. Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> |
||
---|---|---|
.. | ||
float_histogram_test.go | ||
float_histogram.go | ||
generic_test.go | ||
generic.go | ||
histogram_test.go | ||
histogram.go | ||
test_utils.go |