-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
proposal: runtime: Expose goid
and gopc
in GoroutineProfile
#59663
Comments
cc @golang/runtime |
Hey, is there something I can do to help get this happen? I'm looking for an alternative to calling |
Change https://go.dev/cl/585396 mentions this issue: |
Kindly pinging the proposals team @aclements @cherrymui @randall77 @ianlancetaylor @felixge et al @golang/proposal-review as this has been around for 1+ year and yet helps performance companies who are big time Go users massively cc @indragiek. Thank you! |
While investigating
runtime.GoroutineProfile()
for profiling (sampling), I've noticed the resultingStackRecord
is missing any way to identify a Goroutine across collected samples. Actual copy ofgoid
andgopc
fromg
could happen insaveg()
toStackRecord
, but I'm not sure that's the best idea, considering,StackRecord
is also used in a couple of other places where it wouldn't make sense to add these fields. Also, it wouldn't be a generic StackRecord then...The text was updated successfully, but these errors were encountered: