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 <rsc@golang.org>
This commit is contained in:
Jaana Burcu Dogan 2017-02-07 11:01:51 -08:00
parent 67c3d4dab0
commit 6cf7918e73

View File

@ -33,7 +33,9 @@
// }
// defer pprof.StopCPUProfile()
// }
// ...
//
// // ... rest of the program ...
//
// if *memprofile != "" {
// f, err := os.Create(*memprofile)
// if err != nil {