]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: clarify CPU profile's captured during the lifetime of the prog
authorJaana Burcu Dogan <jbd@google.com>
Tue, 7 Feb 2017 19:01:51 +0000 (11:01 -0800)
committerJaana Burcu Dogan <jbd@google.com>
Tue, 7 Feb 2017 19:46:15 +0000 (19:46 +0000)
Fixes #18504.

Change-Id: I3716fc58fc98472eea15ce3617aee3890670c276
Reviewed-on: https://go-review.googlesource.com/36430
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/pprof/pprof.go

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