]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: pull heap profile cycle into a type
authorAustin Clements <austin@google.com>
Wed, 1 Mar 2017 16:50:38 +0000 (11:50 -0500)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 01:14:54 +0000 (01:14 +0000)
commit3ebe7d7d110ba2573cfd597bb786d14749181cc3
tree463d9142bbaa27f8319e883c768f1d9d6606ea3d
parent42aa608f8acd50f963b0f1807a6c3ecbf651b6e2
runtime: pull heap profile cycle into a type

Currently memRecord has the same set of four fields repeated three
times. Pull these into a type and use this type three times. This
cleans up and simplifies the code a bit and will make it easier to
switch to a globally tracked heap profile cycle for #19311.

Change-Id: I414d15673feaa406a8366b48784437c642997cf2
Reviewed-on: https://go-review.googlesource.com/37713
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mprof.go