]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: write profiles in protobuf format.
authorMichael Matloob <matloob@golang.org>
Fri, 28 Oct 2016 19:28:18 +0000 (15:28 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 28 Oct 2016 19:52:13 +0000 (19:52 +0000)
commitb33030a72754cb55d6ec137e79facacb398c9be4
treef1046297cd1375b9341939cacd7029f20e66c03a
parent30651b3bbbfda86e8188dfd89cb326a4db085e25
runtime/pprof: write profiles in protobuf format.

Original Change by Daria Kolistratova <daria.kolistratova@intel.com>

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: I2751345b09a66ee2b6aa64be76cba4cd1c326aa6
Reviewed-on: https://go-review.googlesource.com/32257
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
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