From d0808c93f66099d4dcb8414dad324f6710b917a6 Mon Sep 17 00:00:00 2001 From: Miguel Angel Date: Mon, 15 Aug 2022 21:20:36 -0400 Subject: [PATCH] runtime/pprof: add WriteHeapProfile Fixes: #3071 --- src/runtime/pprof/pprof.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go index 91470670..53ebc88a 100644 --- a/src/runtime/pprof/pprof.go +++ b/src/runtime/pprof/pprof.go @@ -20,6 +20,10 @@ func StartCPUProfile(w io.Writer) error { func StopCPUProfile() { } +func WriteHeapProfile(w io.Writer) error { + return nil +} + func Lookup(name string) *Profile { return nil }