From 6cf7918e7335041bd7d40be4c6e976a044cc000c Mon Sep 17 00:00:00 2001 From: Jaana Burcu Dogan Date: Tue, 7 Feb 2017 11:01:51 -0800 Subject: [PATCH] runtime/pprof: clarify CPU profile's captured during the lifetime of the prog Fixes #18504. Change-Id: I3716fc58fc98472eea15ce3617aee3890670c276 Reviewed-on: https://go-review.googlesource.com/36430 Reviewed-by: Russ Cox --- src/runtime/pprof/pprof.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go index 871fba0e5f..8c500e6f3e 100644 --- a/src/runtime/pprof/pprof.go +++ b/src/runtime/pprof/pprof.go @@ -33,7 +33,9 @@ // } // defer pprof.StopCPUProfile() // } -// ... +// +// // ... rest of the program ... +// // if *memprofile != "" { // f, err := os.Create(*memprofile) // if err != nil {