-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pprof: go tool pprof cannot read the pprof file normally #66227
Comments
this is an upstream pprof issue of how it treats names with colons Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
Thanks for your reply! But according to my understanding, isn't this a bug? |
The pprof program that is included with the Go distribution comes from https://github.com/google/pprof. That is where bugs against pprof should be reported. Thanks. |
I have made corresponding modifications to the upstream warehouse and it has been merged(google/pprof#817). At the same time, go also requires minor changes and is currently in a ready state (https://go-review.googlesource.com/c/go/+/539595). The new version of Go will not have similar situations again For now, the simplest way is to modify the file name so that it does not contain a colon |
Go version
go version go1.21rc2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
go tool pprof memory_pprof_2024_03_10_02:11:49
What did you see happen?
Fetching profile over HTTP from http://memory_pprof_2024_03_10_02:11:49/debug/pprof/profile
memory_pprof_2024_03_10_02:11:49: Get "http://memory_pprof_2024_03_10_02:11:49/debug/pprof/profile": dial tcp: lookup memory_pprof_2024_03_10_02:11: no such host
failed to fetch any source profiles
What did you expect to see?
Hope to enter the expected interactive interface
The text was updated successfully, but these errors were encountered: