MCPcopy
hub / github.com/gogf/gf / StackWithFilter

Function StackWithFilter

debug/gdebug/gdebug_stack.go:30–32  ·  view source on GitHub ↗

StackWithFilter 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. The parameter `filter` is used to filter the path of the caller.

(filters []string, skip ...int)

Source from the content-addressed store, hash-verified

28//
29// The parameter `filter` is used to filter the path of the caller.
30func StackWithFilter(filters []string, skip ...int) string {
31 return StackWithFilters(filters, skip...)
32}
33
34// StackWithFilters returns a formatted stack trace of the goroutine that calls it.
35// It calls runtime.Stack with a large enough buffer to capture the entire trace.

Callers 6

CFunction · 0.92
FatalFunction · 0.92
doPrintFunction · 0.92
Test_StackWithFilterFunction · 0.92
StackFunction · 0.70

Calls 1

StackWithFiltersFunction · 0.85

Tested by 2

Test_StackWithFilterFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…