From: Jaana Burcu Dogan Date: Tue, 7 Feb 2017 19:01:51 +0000 (-0800) Subject: runtime/pprof: clarify CPU profile's captured during the lifetime of the prog X-Git-Tag: go1.9beta1~1694 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6cf7918e7335041bd7d40be4c6e976a044cc000c;p=gostls13.git 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 --- 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 {