From cc2a52adef473aa94cbbcc148eef4dfd79259ae7 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sun, 12 Feb 2017 22:56:28 -0800 Subject: all: use keyed composite literals Makes vet happy. Change-Id: I7250f283c96e82b9796c5672a0a143ba7568fa63 Reviewed-on: https://go-review.googlesource.com/36937 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/runtime/pprof/protomem_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/pprof') diff --git a/src/runtime/pprof/protomem_test.go b/src/runtime/pprof/protomem_test.go index a07f20bd25..f951f352d4 100644 --- a/src/runtime/pprof/protomem_test.go +++ b/src/runtime/pprof/protomem_test.go @@ -96,9 +96,9 @@ func testMemRecords(a1, a2 uint64) ([]runtime.MemProfileRecord, int64) { addr1, addr2 := uintptr(a1), uintptr(a2) rate := int64(512 * 1024) rec := []runtime.MemProfileRecord{ - {4096, 1024, 4, 1, [32]uintptr{addr1, addr2}}, - {512 * 1024, 0, 1, 0, [32]uintptr{addr2 + 1, addr2 + 2}}, - {512 * 1024, 512 * 1024, 1, 1, [32]uintptr{addr1 + 1, addr1 + 2, addr2 + 3}}, + {AllocBytes: 4096, FreeBytes: 1024, AllocObjects: 4, FreeObjects: 1, Stack0: [32]uintptr{addr1, addr2}}, + {AllocBytes: 512 * 1024, FreeBytes: 0, AllocObjects: 1, FreeObjects: 0, Stack0: [32]uintptr{addr2 + 1, addr2 + 2}}, + {AllocBytes: 512 * 1024, FreeBytes: 512 * 1024, AllocObjects: 1, FreeObjects: 1, Stack0: [32]uintptr{addr1 + 1, addr1 + 2, addr2 + 3}}, } return rec, rate } -- cgit v1.3