Yes I was hoping it will improve performance. I've built a version which dumps stacks one by one and it tooks around 10 seconds to get ~7000 stacks on a local windows machine. I've used this version to dump delve goroutines while it computes the stacks and the busy goroutine always has a prefix like this:
I thought it would be possible to dump goroutines once using proc.GoroutinesInfo and then fill the stacks without calling proc.FindGouroutine. Since stacks usually contain a lot of repeated file and function names, maybe a bulk api call can send them separately and stacks can use ids instead?
Also I wonder why
proc.GoroutinesInfo doesn't use cached goroutines if the start is 0 and count is less than the size of cached goroutines?