summaryrefslogtreecommitdiff
path: root/src/go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2016-11-10 13:31:41 -0500
committerMichael Matloob <matloob@golang.org>2016-11-10 21:07:48 +0000
commit76f12cdaa2be0b96d314762ff5b2e403d1359cd8 (patch)
tree951799799bb57d41a3f767200f37088dfbeabe88 /src/go
parent7448eb4172bfc8f704b9ea39d77d0113a042b9dc (diff)
downloadgo-git-76f12cdaa2be0b96d314762ff5b2e403d1359cd8.tar.gz
runtime/pprof: output CPU profiles in pprof protobuf format
This change buffers the entire profile and converts in one shot in the profile writer, and could use more memory than necessary to output protocol buffer formatted profiles. It should be possible to convert each chunk in a stream (maybe maintaining some minimal state to output in the end) which could save on memory usage. Fixes #16093 Change-Id: I946c6a2b044ae644c72c8bb2d3bd82c415b1a847 Reviewed-on: https://go-review.googlesource.com/33071 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/go')
-rw-r--r--src/go/build/deps_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go
index 9177daa8ad..39ed9de039 100644
--- a/src/go/build/deps_test.go
+++ b/src/go/build/deps_test.go
@@ -176,7 +176,7 @@ var pkgDeps = map[string][]string{
"runtime/debug": {"L2", "fmt", "io/ioutil", "os", "time"},
"runtime/pprof/internal/gzip0": {"L2"},
"runtime/pprof/internal/protopprof": {"L2", "fmt", "internal/pprof/profile", "os", "time"},
- "runtime/pprof": {"L2", "fmt", "os", "text/tabwriter"},
+ "runtime/pprof": {"L2", "fmt", "os", "runtime/pprof/internal/protopprof", "text/tabwriter", "time"},
"runtime/trace": {"L0"},
"text/tabwriter": {"L2"},