PrintStack prints to standard error the stack trace returned by runtime.Stack.
(skip ...int)
| 14 | |
| 15 | // PrintStack prints to standard error the stack trace returned by runtime.Stack. |
| 16 | func PrintStack(skip ...int) { |
| 17 | fmt.Print(Stack(skip...)) |
| 18 | } |
| 19 | |
| 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. |
searching dependent graphs…