(out io.Writer, p *Palette, s stack.Similarity, pf pathFormat, html string, filter, match *regexp.Regexp, c *stack.Snapshot, first bool)
| 125 | } |
| 126 | |
| 127 | func 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 | // |
no test coverage detected
searching dependent graphs…