diff options
| author | Jaana Burcu Dogan <jbd@google.com> | 2017-02-07 11:01:51 -0800 |
|---|---|---|
| committer | Jaana Burcu Dogan <jbd@google.com> | 2017-02-07 19:46:15 +0000 |
| commit | 6cf7918e7335041bd7d40be4c6e976a044cc000c (patch) | |
| tree | 35ad71e8018b46dde1e32b6f9a4bc81da268cb27 /src/runtime/pprof | |
| parent | 67c3d4dab06530b4a444c3a076fceaa5573cf2b6 (diff) | |
| download | go-6cf7918e7335041bd7d40be4c6e976a044cc000c.tar.xz | |
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>
Diffstat (limited to 'src/runtime/pprof')
| -rw-r--r-- | src/runtime/pprof/pprof.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |
