(s stack.Stack)
| 181 | } |
| 182 | |
| 183 | func isSyscallStack(s stack.Stack) bool { |
| 184 | // Typically runs in the background when code uses CGo: |
| 185 | // https://github.com/golang/go/issues/16714 |
| 186 | return s.HasFunction("runtime.goexit") && strings.HasPrefix(s.State(), "syscall") |
| 187 | } |
| 188 | |
| 189 | func isStdLibStack(s stack.Stack) bool { |
| 190 | // Importing os/signal starts a background goroutine. |
nothing calls this directly
no test coverage detected
searching dependent graphs…