Closed klauspost closed 1 month ago
Here is the output, just for completeness - output.zip
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
It seems like pprofOverlappingDuration
always returns 0. That is as far as I can go into debugging and still make sense of what is happening.
Replacing pprofOverlappingDuration
with return sample.duration()
makes it return something, but I don't know enough about the internals to tell how valid it is.
Hm, I'll look into this. I feel like I may have fixed a bug related to this recently -- I will try to dig it up.
Do you have the same problem with the Go 1.23rc2 toolchain? (Using the trace tool from that toolchain, I mean.)
Thanks @rhysh! That's exactly what I had in mind. Agreed on backporting.
@gopherbot please backport to Go 1.22. The impact is limited to local runs of go tool trace
, but there's no workaround. And since the change only affects go tool trace
, it's relatively low risk.
Backport issue(s) opened: #68546 (for 1.22).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
Change https://go.dev/cl/600255 mentions this issue: cmd/trace/v2: handle the -pprof flag
Change https://go.dev/cl/600275 mentions this issue: cmd/trace/v2: make the -pprof actually useful
Go version
go version go1.22.4 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Using
go tool trace profile.trace
(this is a v2 profile - the-pprof
parameter is ignored)Using sample profile: https://download.klauspost.com/profile.trace.gz
Click links or download with:
What did you see happen?
Empty profiles:
What did you expect to see?
The advertised profiles.