Slide 46
Slide 46 text
var childG = make(map[uint64]struct{})
var lastGLen int
for {
for _, ev := range events {
if ev.Type != trace.EvGoCreate {
continue
}
if _, ok := childG[ev.G]; !ok && !filterStack(ev.Stk, re) {
continue
}
childG[ev.Args[0]] = struct{}{}
}
if len(childG) == lastGLen {
break
}
lastGLen = len(childG)
}