MCPcopy Index your code
hub / github.com/cockroachdb/errors / callers

Function callers

withstack/stack.go:53–59  ·  view source on GitHub ↗

callers mirrors the code in github.com/pkg/errors, but makes the depth customizable.

(depth int)

Source from the content-addressed store, hash-verified

51// callers mirrors the code in github.com/pkg/errors,
52// but makes the depth customizable.
53func callers(depth int) *stack {
54 const numFrames = 32
55 var pcs [numFrames]uintptr
56 n := runtime.Callers(2+depth, pcs[:])
57 var st stack = pcs[0:n]
58 return &st
59}

Callers 1

WithStackDepthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…