]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: move common code to writeProfileInternal function
authorElvina Yakubova <elvinayakubova@gmail.com>
Thu, 24 Dec 2020 19:38:06 +0000 (22:38 +0300)
committerCherry Zhang <cherryyz@google.com>
Thu, 18 Mar 2021 21:10:31 +0000 (21:10 +0000)
commit79d03ad7396c781aa490442a3c853b5cb627298d
tree8087777356c2d6a270e548c6e16b1d33849c0863
parente4253cd023e77743ae11d79c4be3dd6db8138aa9
runtime/pprof: move common code to writeProfileInternal function

This patch provides changes according to TODO. Since writeMutex and
writeBlock functions have a lot of code in common, it is better to
move this code to one function.

Change-Id: I81aaad067b0cb1647824909f3b5f6861add3a7ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/280152
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/runtime/pprof/pprof.go