]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: write profiles in protobuf format.
authorunknown <daria.kolistratova@intel.com>
Fri, 7 Oct 2016 15:21:03 +0000 (18:21 +0300)
committerMichael Matloob <matloob@golang.org>
Fri, 28 Oct 2016 18:08:27 +0000 (18:08 +0000)
commit7d14401bcbee4a8ff33ac869ef5ebb156a179ab6
tree4ad1794aacfee87f3d69d380a824586fd560f57b
parentd70b0fe6c4d1b1369b742ea5b7d4e6f0c50ffdcb
runtime/pprof: write profiles in protobuf format.

Added functions with suffix proto and stuff from pprof tool to translate
to protobuf. Done as the profile proto is more extensible than the legacy
pprof format and is pprof's preferred profile format. Large part was taken
from https://github.com/google/pprof tool. Tested by hand and compared the
result with translated by pprof tool, profiles are identical.
Fixes #16093
Change-Id: I5acdb2809cab0d16ed4694fdaa7b8ddfd68df11e
Reviewed-on: https://go-review.googlesource.com/30556
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/go/build/deps_test.go
src/runtime/crash_cgo_test.go
src/runtime/pprof/decoder_for_test.go [new file with mode: 0644]
src/runtime/pprof/internal/profile/encode.go [new file with mode: 0644]
src/runtime/pprof/internal/profile/profile.go [new file with mode: 0644]
src/runtime/pprof/internal/profile/profile_memmap.go [new file with mode: 0644]
src/runtime/pprof/internal/profile/proto.go [new file with mode: 0644]
src/runtime/pprof/internal/protopprof/protopprof.go [new file with mode: 0644]
src/runtime/pprof/mprof_test.go
src/runtime/pprof/pprof.go
src/runtime/pprof/pprof_test.go