]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: finish phase CPU profile before running GC
authorAustin Clements <austin@google.com>
Fri, 20 Mar 2020 20:54:10 +0000 (16:54 -0400)
committerAustin Clements <austin@google.com>
Sat, 21 Mar 2020 13:48:38 +0000 (13:48 +0000)
commit6def07cf1ec9b4ac5ae8a4cbcddb603e0c3e982b
tree6a1303437c73624c1f8cb352c6802aa753298e42
parentfb0c3ee13dd9e10a2cf96e57f7ba45ba0e947a47
[dev.link] cmd/link: finish phase CPU profile before running GC

Currently, phase profiling runs GC at the end of a phase before
stopping the CPU profile. Rearrange things so we stop the CPU profile
right when we collect the end time-stamp and before dealing with GCs
and heap profiles.

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