]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/metrics: change unit on *-by-size metrics to match bucket unit
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 7 Jan 2021 17:24:39 +0000 (17:24 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 8 Jan 2021 16:28:15 +0000 (16:28 +0000)
commit32afcc94363e15ee2ef0cffec962191a15e73094
tree106d625a8d69876dd69fc9c2fa806148df185e26
parentc6513bca5aeaa9f9b6fe552d60f5b6c700ce0772
runtime/metrics: change unit on *-by-size metrics to match bucket unit

This change modifies the *-by-size metrics' units to be based off the
bucket's unit (bytes) as opposed to the unit of the counts (objects).
This convention is more in-line with distributions in other metrics
systems.

Change-Id: Id3b68a09f52f0e1ff9f4346f613ae1cbd9f52f73
Reviewed-on: https://go-review.googlesource.com/c/go/+/282352
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/metrics_test.go