]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: record per-phase memory profile
authorAustin Clements <austin@google.com>
Fri, 20 Mar 2020 19:52:43 +0000 (15:52 -0400)
committerAustin Clements <austin@google.com>
Sat, 21 Mar 2020 13:48:35 +0000 (13:48 +0000)
commit105053fa19eba7f9761e1fdf1007905051583d44
tree3f6d154a132e8d6ad6d559d16c1be94a49dfcb3e
parent7055f01e125eb4ad40b84a757a8748c0b88854f4
[dev.link] cmd/link: record per-phase memory profile

We already have an option to record per-phase CPU profiles. If we're
in "mem" benchmark mode, then it also makes sense to collect a heap
profile of the live heap at the end of a phase. This CL adds that
profile and changes the extensions of the profiles to "cpuprof" and
"memprof" to make the distinction clear.

Change-Id: Ia05b7fa18bccad954a875f7a55d9cff5ad8dfaaf
Reviewed-on: https://go-review.googlesource.com/c/go/+/224617
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/benchmark/bench.go
src/cmd/link/internal/benchmark/bench_test.go