aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/pprof
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2020-03-09 16:32:49 -0400
committerMichael Matloob <matloob@golang.org>2020-03-11 22:12:58 +0000
commit251f3e5b9cf204b80f78eb383f84e3672603d57d (patch)
tree583190156d6b19b687595c49f3c8665ab7b13d26 /src/runtime/pprof
parent235a7c57be4a25a72c631acc8d3401e2f14c419d (diff)
downloadgo-251f3e5b9cf204b80f78eb383f84e3672603d57d.tar.gz
go-251f3e5b9cf204b80f78eb383f84e3672603d57d.zip
runtime/pprof: document that debug=0 emits proto
Updates #16093. Change-Id: I629b3d44d6b2083f5e62701cc0c23fe2362502d4 Reviewed-on: https://go-review.googlesource.com/c/go/+/222676 Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/runtime/pprof')
-rw-r--r--src/runtime/pprof/pprof.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go
index a7916bf6fb..bbdc432eec 100644
--- a/src/runtime/pprof/pprof.go
+++ b/src/runtime/pprof/pprof.go
@@ -313,9 +313,11 @@ func (p *Profile) Remove(value interface{}) {
// Otherwise, WriteTo returns nil.
//
// The debug parameter enables additional output.
-// Passing debug=0 prints only the hexadecimal addresses that pprof needs.
-// Passing debug=1 adds comments translating addresses to function names
-// and line numbers, so that a programmer can read the profile without tools.
+// Passing debug=0 writes the gzip-compressed protocol buffer described
+// in https://github.com/google/pprof/tree/master/proto#overview.
+// Passing debug=1 writes the legacy text format with comments
+// translating addresses to function names and line numbers, so that a
+// programmer can read the profile without tools.
//
// The predefined profiles may assign meaning to other debug values;
// for example, when printing the "goroutine" profile, debug=2 means to