MCPcopy Index your code
hub / github.com/maruel/panicparse / StackLines

Method StackLines

internal/ui.go:218–227  ·  view source on GitHub ↗

StackLines prints one complete stack trace, without the header.

(signature *stack.Signature, srcLen, pkgLen int, pf pathFormat)

Source from the content-addressed store, hash-verified

216
217// StackLines prints one complete stack trace, without the header.
218func (p *Palette) StackLines(signature *stack.Signature, srcLen, pkgLen int, pf pathFormat) string {
219 out := make([]string, len(signature.Stack.Calls))
220 for i := range signature.Stack.Calls {
221 out[i] = p.callLine(&signature.Stack.Calls[i], srcLen, pkgLen, pf)
222 }
223 if signature.Stack.Elided {
224 out = append(out, " (...)")
225 }
226 return strings.Join(out, "\n") + "\n"
227}

Callers 3

TestStackLinesFunction · 0.80
writeBucketsToConsoleFunction · 0.80
writeGoroutinesToConsoleFunction · 0.80

Calls 1

callLineMethod · 0.95

Tested by 1

TestStackLinesFunction · 0.64