EnableMemoryCallstack enables stack tracing for the memory events such as memory allocations.
()
| 99 | // EnableMemoryCallstack enables stack tracing for the memory |
| 100 | // events such as memory allocations. |
| 101 | func (s *StackExtensions) EnableMemoryCallstack() { |
| 102 | if s.config.EnableMemEvents { |
| 103 | s.AddStackTracing(event.VirtualAlloc) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | // EnableThreadpoolCallstack enables stack tracing for thread pool events. |
| 108 | func (s *StackExtensions) EnableThreadpoolCallstack() { |