go/src/cmd/pprof
Raul Silvera fcd2a06ab6 cmd/pprof/internal: use and accept packed encoding for repeated fields
Packed encoding is the default on the proto3 format. Profiles generated
in the profile.proto format by third parties cannot be decoded by the
Go pprof tool, since its proto decoder does not recognize packed
encoding for repeated fields.

In particular this issue prevents go tool pprof from reading profiles
generated by the version of pprof in github.com/google/pprof

Profiles generated by go tool pprof after this change will use packed
repeating fields, so older versions of pprof will not be able to read
them. pprof will continue to be able to read profiles generated before
this change.

Change-Id: Ife0b353a535ae1e495515b9bcec588dd967e171b
Reviewed-on: https://go-review.googlesource.com/21240
Reviewed-by: David Symonds <dsymonds@golang.org>
Run-TryBot: David Symonds <dsymonds@golang.org>
2016-03-28 22:55:20 +00:00
..
internal cmd/pprof/internal: use and accept packed encoding for repeated fields 2016-03-28 22:55:20 +00:00
README cmd/pprof: install as go tool pprof 2014-11-09 20:20:06 -05:00
doc.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
pprof.go cmd/pprof: exit with non-zero status code on error 2015-12-05 04:09:15 +00:00

README

The pprof in this directory is adapted from the pprof used inside Google
for C++, Java, and Go programs. Because it was developed for that broader
context, it is overgeneralized when used here for the specific use case
of profiling standard Go programs. However, we've left the abstractions
intact in order to share updates between this copy and Google's internal one.

Please do not take the level of abstraction in this program as an example
to follow in your own.