]> Cypherpunks repositories - gostls13.git/commit
runtime: add timeHistogram type
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 6 Aug 2020 20:36:49 +0000 (20:36 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 21:47:49 +0000 (21:47 +0000)
commit36c5edd8d9e6c13af26733e5c820eae0598203fe
treefa6de57db82f3ee49df98b3dfddff62d0f6af536
parent8e2370bf7f0c992ce1ea5dc54b43551cea71a485
runtime: add timeHistogram type

This change adds a concurrent HDR time histogram to the runtime with
tests. It also adds a function to generate boundaries for use by the
metrics package.

For #37112.

Change-Id: Ifbef8ddce8e3a965a0dcd58ccd4915c282ae2098
Reviewed-on: https://go-review.googlesource.com/c/go/+/247046
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/export_test.go
src/runtime/histogram.go [new file with mode: 0644]
src/runtime/histogram_test.go [new file with mode: 0644]
src/runtime/metrics.go