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

Function processInner

internal/main.go:127–144  ·  view source on GitHub ↗
(out io.Writer, p *Palette, s stack.Similarity, pf pathFormat, html string, filter, match *regexp.Regexp, c *stack.Snapshot, first bool)

Source from the content-addressed store, hash-verified

125}
126
127func processInner(out io.Writer, p *Palette, s stack.Similarity, pf pathFormat, html string, filter, match *regexp.Regexp, c *stack.Snapshot, first bool) error {
128 log.Printf("GOROOT=%s", c.RemoteGOROOT)
129 log.Printf("GOPATH=%s", c.RemoteGOPATHs)
130 needsEnv := len(c.Goroutines) == 1 && showBanner()
131 // Bucketing should only be done if no data race was detected.
132 if !c.IsRace() {
133 a := c.Aggregate(s)
134 if html == "" {
135 return writeBucketsToConsole(out, p, a, pf, needsEnv, filter, match)
136 }
137 return toHTML(a, html, needsEnv)
138 }
139 // It's a data race.
140 if html == "" {
141 return writeGoroutinesToConsole(out, p, c, pf, needsEnv, filter, match)
142 }
143 return toHTML(c, html, needsEnv)
144}
145
146// process copies stdin to stdout and processes any "panic: " line found.
147//

Callers 1

processFunction · 0.85

Calls 6

showBannerFunction · 0.85
writeBucketsToConsoleFunction · 0.85
writeGoroutinesToConsoleFunction · 0.85
IsRaceMethod · 0.80
AggregateMethod · 0.80
toHTMLFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…