pprof
pprof copied to clipboard
Pprof does not resolve symbols
Please answer these questions before submitting your issue. Thanks!
What version of pprof are you using?
If you are using pprof via go tool pprof
, what's your go env
output?
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/troy/.cache/go-build'
GOENV='/home/troy/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/troy/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/troy/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build356107294=/tmp/go-build -gno-record-gcc-switches'
If you run pprof from GitHub, what's the Git revision?
[72c8669](https://github.com/google/pprof/commit/72c8669ad3e757952fec89b6172727d8966dcec6)
What operating system and processor architecture are you using?
Linux Ubuntu 23.10 6.5.0-28-generic
What did you do?
running
go tool pprof -png heap.pb.gz
generates a profile that has symbols
troy@scuf ➜ tmp2 git:(master) ✗ which pprof
pprof not found
troy@scuf ➜ tmp2 git:(master) ✗ go install github.com/google/pprof@72c8669
troy@scuf ➜ tmp2 git:(master) ✗ which pprof
/home/troy/go/bin/pprof
troy@scuf ➜ tmp2 git:(master) ✗ time pprof -png heap.pb.gz
Generating report in profile001.png
pprof -png heap.pb.gz 0.04s user 0.03s system 110% cpu 0.060 total
troy@scuf ➜ tmp2 git:(master) ✗ time go tool pprof -png heap.pb.gz
Generating report in profile002.png
go tool pprof -png heap.pb.gz 4.24s user 0.28s system 130% cpu 3.462 total
troy@scuf ➜ tmp2 git:(master) ✗
What did you expect to see?
The profiles are the same.
What did you see instead?
profile001.png
profile002.png
Could you attach the profile and the binary?
No response, so closing.