aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pprof
diff options
context:
space:
mode:
authorAlberto Donizetti <alb.donizetti@gmail.com>2021-05-07 19:10:28 +0200
committerAlberto Donizetti <alb.donizetti@gmail.com>2021-05-08 14:59:49 +0000
commit68327e1aa11457cd570bc7eaf03a0260950f27d9 (patch)
tree998e9b0c2b3a08f582555c4039217a982384dde9 /src/cmd/pprof
parent4c8f48ed4f3db0e3ba376e6b7a261d26b41d8dd0 (diff)
downloadgo-68327e1aa11457cd570bc7eaf03a0260950f27d9.tar.gz
go-68327e1aa11457cd570bc7eaf03a0260950f27d9.zip
cmd/vendor: upgrade pprof to latest
This change upgrades the vendored pprof to pick up the fix for a serious issue that made the source view in browser mode blank (tracked upstream as google/pprof#621). I also had to patch pprof.go, since one of the upstream commit we included introduced a breaking change in the file interface (the Base method is now called ObjAddr and has a different signature). I've manually verified that the upgrade fixes the aforementioned issues with the source view. Fixes #45786 Change-Id: I00659ae539a2ad603758e1f06572374d483b9ddc Reviewed-on: https://go-review.googlesource.com/c/go/+/318049 Trust: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r--src/cmd/pprof/pprof.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/pprof/pprof.go b/src/cmd/pprof/pprof.go
index 11f91cbedb..1d10a7b41f 100644
--- a/src/cmd/pprof/pprof.go
+++ b/src/cmd/pprof/pprof.go
@@ -232,9 +232,9 @@ func (f *file) Name() string {
return f.name
}
-func (f *file) Base() uint64 {
+func (f *file) ObjAddr(addr uint64) (uint64, error) {
// No support for shared libraries.
- return 0
+ return 0, nil
}
func (f *file) BuildID() string {