aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/pprof/pprof.go
diff options
context:
space:
mode:
authorWeixie Cui <cuiweixie@gmail.com>2026-04-10 18:28:42 +0000
committerGopher Robot <gobot@golang.org>2026-04-13 09:24:54 -0700
commit6eb5a4122879941275ca1e292d873b2a3452bf21 (patch)
treea491303b6be4349c04bb516ba2807a1d0f491e70 /src/runtime/pprof/pprof.go
parentf2d1ef98bef27ffad398d2cc435439a0f08b998e (diff)
downloadgo-6eb5a4122879941275ca1e292d873b2a3452bf21.tar.xz
runtime/pprof: using buffer writer instead of original writer
Change-Id: Ibff8e7a08090d67d9a0625dee068c8d2eefbd190 GitHub-Last-Rev: b90b986121314615cf5d259d76a7be59303de1b0 GitHub-Pull-Request: golang/go#78630 Reviewed-on: https://go-review.googlesource.com/c/go/+/765480 Reviewed-by: Florian Lehner <lehner.florian86@gmail.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/pprof/pprof.go')
-rw-r--r--src/runtime/pprof/pprof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go
index 6708d2dfa3..2dc0ac1807 100644
--- a/src/runtime/pprof/pprof.go
+++ b/src/runtime/pprof/pprof.go
@@ -1003,7 +1003,7 @@ func writeProfileInternal(w io.Writer, debug int, name string, runtimeProfile fu
}
b := bufio.NewWriter(w)
- tw := tabwriter.NewWriter(w, 1, 8, 1, '\t', 0)
+ tw := tabwriter.NewWriter(b, 1, 8, 1, '\t', 0)
w = tw
fmt.Fprintf(w, "--- %v:\n", name)