import "k8s.io/klog/v2/internal/dbg"
Package dbg provides some helper code for call traces.
dbg.go
func Stacks(all bool) []byte
Stacks is a wrapper for runtime.Stack that attempts to recover the data for all goroutines or the calling one.