MCPcopy Create free account
hub / github.com/maruel/panicparse / IsRace

Method IsRace

stack/context.go:215–217  ·  view source on GitHub ↗

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().

()

Source from the content-addressed store, hash-verified

213//
214// When a race condition was detected, it is preferable to not call Aggregate().
215func (s *Snapshot) IsRace() bool {
216 return s.Goroutines[0].RaceAddr != 0
217}
218
219func (s *Snapshot) guessPaths() bool {
220 b := s.findRoots() == 0

Callers 3

TestGomoduleComplexFunction · 0.80
TestSnapshot_ToHTMLFunction · 0.80
processInnerFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestGomoduleComplexFunction · 0.64
TestSnapshot_ToHTMLFunction · 0.64