]> Cypherpunks repositories - gostls13.git/commit
cmd/link: write memprofile in legacy format for compilebench
authorAustin Clements <austin@google.com>
Wed, 8 May 2019 20:42:53 +0000 (16:42 -0400)
committerAustin Clements <austin@google.com>
Wed, 8 May 2019 21:06:26 +0000 (21:06 +0000)
commit7498e8f5a2e3de83771b8dd9997fb9c02a39228d
treec49e7cb3f5246cf94d03e4a29efe7b8d479befd2
parentd21c7b728263c917ad6b83fd36879831f70d1279
cmd/link: write memprofile in legacy format for compilebench

compilebench depends on the legacy heap profile format to read the
allocation stats of build tools. We're adding a benchmark for the
linker to compilebench, so we need the linker to emit the heap profile
in the legacy format.

This is the linker equivalent of CL 35484, which did this for the
compiler.

Change-Id: I16ad60c4f0fd80b4b6d608a5677ebe04e1fb5e5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/176057
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/main.go