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:
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: