mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
10a82f87fd
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> |
||
---|---|---|
.. | ||
bstream.go | ||
bstream_test.go | ||
chunk.go | ||
chunk_test.go | ||
float_histogram.go | ||
float_histogram_test.go | ||
histogram.go | ||
histogram_meta.go | ||
histogram_meta_test.go | ||
histogram_test.go | ||
varbit.go | ||
varbit_test.go | ||
xor.go | ||
xor_test.go |