Commit 6cf7918e authored by Jaana Burcu Dogan's avatar Jaana Burcu Dogan

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/36430Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 67c3d4da
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
// } // }
// defer pprof.StopCPUProfile() // defer pprof.StopCPUProfile()
// } // }
// ... //
// // ... rest of the program ...
//
// if *memprofile != "" { // if *memprofile != "" {
// f, err := os.Create(*memprofile) // f, err := os.Create(*memprofile)
// if err != nil { // if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment