]> Cypherpunks repositories - gostls13.git/commit
runtime: implement dumpmemstats in terms of readmemstats_m
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 17 Sep 2020 21:19:28 +0000 (21:19 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 21:49:01 +0000 (21:49 +0000)
commit32d0eaa44e2d83cff6f0c1fa3d58af7627f3cd99
tree576d9d8aff85829db8eac668a3684457841cd172
parent80c6b92ecb911409f57d06793a1213395b75ebe2
runtime: implement dumpmemstats in terms of readmemstats_m

Since MemStats is now populated directly and some values are derived,
avoid duplicating the logic by instead populating the heap dump directly
from MemStats (external version) instead of memstats (runtime internal
version).

Change-Id: I0bec96bfa02d2ffd1b56475779c124a760e64238
Reviewed-on: https://go-review.googlesource.com/c/go/+/255817
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/heapdump.go