FindGoroutine can be slow when there are many goroutines running. This can not be fixed in the general case, however: 1. Instead of getting the entire list of goroutines at once just get a few at a time and return as soon as we find the one we want. 2. Since FindGoroutine is mostly called by ConvertEvalScope and users are more likely to request informations about a goroutine running on a thread, look within the threads first. |
||
|---|---|---|
| .. | ||
| config | ||
| dwarf | ||
| goversion | ||
| logflags | ||
| proc | ||
| terminal | ||
| version | ||