MCPcopy
hub / github.com/uber-go/goleak / Current

Function Current

internal/stack/stacks.go:233–235  ·  view source on GitHub ↗

Current returns the stack for the current goroutine.

()

Source from the content-addressed store, hash-verified

231
232// Current returns the stack for the current goroutine.
233func Current() Stack {
234 return getStacks(false)[0]
235}
236
237func getStackBuffer(all bool) []byte {
238 for i := _defaultBufferSize; ; i *= 2 {

Callers 6

TestOptionsFiltersFunction · 0.92
FindFunction · 0.92
TestAllFunction · 0.85
TestCurrentFunction · 0.85
TestCurrentCreatedByFunction · 0.85

Calls 1

getStacksFunction · 0.85

Tested by 5

TestOptionsFiltersFunction · 0.74
TestAllFunction · 0.68
TestCurrentFunction · 0.68
TestCurrentCreatedByFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…