mirror of
https://github.com/golang/go.git
synced 2025-05-22 16:09:37 +00:00
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:
parent
67c3d4dab0
commit
6cf7918e73
@ -33,7 +33,9 @@
|
||||
// }
|
||||
// defer pprof.StopCPUProfile()
|
||||
// }
|
||||
// ...
|
||||
//
|
||||
// // ... rest of the program ...
|
||||
//
|
||||
// if *memprofile != "" {
|
||||
// f, err := os.Create(*memprofile)
|
||||
// if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user