Stack returns a formatted stack trace of the goroutine that calls it. It calls runtime.Stack with a large enough buffer to capture the entire trace.
(skip ...int)
| 20 | // Stack returns a formatted stack trace of the goroutine that calls it. |
| 21 | // It calls runtime.Stack with a large enough buffer to capture the entire trace. |
| 22 | func Stack(skip ...int) string { |
| 23 | return StackWithFilter(nil, skip...) |
| 24 | } |
| 25 | |
| 26 | // StackWithFilter returns a formatted stack trace of the goroutine that calls it. |
| 27 | // It calls runtime.Stack with a large enough buffer to capture the entire trace. |
searching dependent graphs…