IsRace returns true if a race detector stack trace was found. Otherwise, it is a normal goroutines snapshot. When a race condition was detected, it is preferable to not call Aggregate().
()
| 213 | // |
| 214 | // When a race condition was detected, it is preferable to not call Aggregate(). |
| 215 | func (s *Snapshot) IsRace() bool { |
| 216 | return s.Goroutines[0].RaceAddr != 0 |
| 217 | } |
| 218 | |
| 219 | func (s *Snapshot) guessPaths() bool { |
| 220 | b := s.findRoots() == 0 |
no outgoing calls