diff options
author | Dmitriy Vyukov <dvyukov@google.com> | 2012-09-22 05:54:36 +1000 |
---|---|---|
committer | Dmitriy Vyukov <dvyukov@google.com> | 2012-09-22 05:54:36 +1000 |
commit | c8ba0a40b46bd56fdad011c841ba1d98be05384e (patch) | |
tree | 8c7204d080a7785bf8590ced64e8124d6b51f21d | |
parent | d3f4ba0c71b1e5e80d2c7f316a2e15ed32abff09 (diff) | |
download | go-c8ba0a40b46bd56fdad011c841ba1d98be05384e.tar.gz go-c8ba0a40b46bd56fdad011c841ba1d98be05384e.zip |
[release-branch.go1] runtime/pprof: fix comments
««« backport e7e49c318134
runtime/pprof: fix comments
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6460082
»»»
-rw-r--r-- | src/pkg/runtime/pprof/pprof.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/runtime/pprof/pprof.go b/src/pkg/runtime/pprof/pprof.go index f67e8a8f9a..48e8b92f97 100644 --- a/src/pkg/runtime/pprof/pprof.go +++ b/src/pkg/runtime/pprof/pprof.go @@ -23,7 +23,7 @@ import ( // BUG(rsc): A bug in the OS X Snow Leopard 64-bit kernel prevents // CPU profiling from giving accurate results on that system. -// A Profile is a collection of stack traces showing the call sequences +// Profile is a collection of stack traces showing the call sequences // that led to instances of a particular event, such as allocation. // Packages can create and maintain their own profiles; the most common // use is for tracking resources that must be explicitly closed, such as files @@ -250,7 +250,7 @@ func (x stackProfile) Less(i, j int) bool { return len(t) < len(u) } -// A countProfile is a set of stack traces to be printed as counts +// countProfile is a set of stack traces to be printed as counts // grouped by stack trace. There are multiple implementations: // all that matters is that we can find out how many traces there are // and obtain each trace in turn. @@ -356,7 +356,7 @@ func countHeap() int { return n } -// writeHeapProfile writes the current runtime heap profile to w. +// writeHeap writes the current runtime heap profile to w. func writeHeap(w io.Writer, debug int) error { // Find out how many records there are (MemProfile(nil, false)), // allocate that many records, and get the data. |