]> Cypherpunks repositories - gostls13.git/commit
runtime,runtime/metrics: add object size distribution metrics
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 6 Aug 2020 19:04:46 +0000 (19:04 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 21:47:43 +0000 (21:47 +0000)
commit8e2370bf7f0c992ce1ea5dc54b43551cea71a485
treec82b9ded4145e6ecaa8813e31d00358b2cf2e793
parentc305e49e96deafe54a8e43010ea76fead6da0a98
runtime,runtime/metrics: add object size distribution metrics

This change adds metrics for the distribution of objects allocated and
freed by size, mirroring MemStats' BySize field.

For #37112.

Change-Id: Ibaf1812da93598b37265ec97abc6669c1a5efcbf
Reviewed-on: https://go-review.googlesource.com/c/go/+/247045
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/metrics.go
src/runtime/metrics/description.go
src/runtime/metrics/doc.go
src/runtime/metrics_test.go