You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating runtime.GoroutineProfile() for profiling (sampling), I've noticed the resulting StackRecord is missing any way to identify a Goroutine across collected samples. Actual copy of goid and gopc from g could happen in saveg() to StackRecord, 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:
Hey, is there something I can do to help get this happen? I'm looking for an alternative to calling runtime.stack(..., true) to get stack traces for all goroutines periodically because that is quite CPU heavy.
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: