Current returns the stack for the current goroutine.
()
| 231 | |
| 232 | // Current returns the stack for the current goroutine. |
| 233 | func Current() Stack { |
| 234 | return getStacks(false)[0] |
| 235 | } |
| 236 | |
| 237 | func getStackBuffer(all bool) []byte { |
| 238 | for i := _defaultBufferSize; ; i *= 2 { |
searching dependent graphs…