EnableThreadpoolCallstack enables stack tracing for thread pool events.
()
| 106 | |
| 107 | // EnableThreadpoolCallstack enables stack tracing for thread pool events. |
| 108 | func (s *StackExtensions) EnableThreadpoolCallstack() { |
| 109 | if s.config.EnableThreadpoolEvents { |
| 110 | s.AddStackTracing(event.SubmitThreadpoolWork) |
| 111 | s.AddStackTracing(event.SubmitThreadpoolCallback) |
| 112 | s.AddStackTracing(event.SetThreadpoolTimer) |
| 113 | } |
| 114 | } |