-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Description
What version of Go are you using (go version)?
$ go version go version go1.14 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/jake/.cache/go-build" GOENV="/home/jake/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/jake/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/lib/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/jake/zikaeroh/hortbot/hortbot/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build332050882=/tmp/go-build -gno-record-gcc-switches" GOROOT/bin/go version: go version go1.14 linux/amd64 GOROOT/bin/go tool compile -V: compile version go1.14 uname -sr: Linux 5.5.7-zen1-1-zen /usr/lib/libc.so.6: GNU C Library (GNU libc) stable release version 2.31. gdb --version: GNU gdb (GDB) 9.1
What did you do?
Created a profile, and opened it with go tool pprof to view a graph of memory allocations.
What did you expect to see?
Nodes with package names.
What did you see instead?
Packages which are at the root of a non-v1 module show their version suffix rather than their actual package name, making it more difficult to determine what they are.
For example, jackc's pgx/pgconn, which are at v4 and v2 respectively:
It looks like pprof just takes the last element of the import path, which used to be somewhat accurate (ignoring path/package name differences), but is less so now.
Reactions are currently unavailable
