Hacker News new | ask | show | jobs
by chrsig 1374 days ago
Definitely seems like a useful tool...being in java definitely is a bummer though, makes it harder to integrate into the ecosystem.

I wish the go runtime would allow adding annotations to stack frames. just something simple to attach key/value pairs to a frame, or something. Enough to give the goroutine a name.

runtime/trace gets close to it by annotating the context with a task/region, but if the trace hadn't been started before the task starts, then it's not going to show up anywhere.

1 comments

Does pprof.Do address that use case?

https://pkg.go.dev/runtime/pprof#Do

very possibly! thanks, I totally missed those being added! I'll have to play around with them a bit