(pc uintptr)
| 130 | } |
| 131 | |
| 132 | func functionNameForPC(pc uintptr) (string, bool) { |
| 133 | fn := runtime.FuncForPC(pc) |
| 134 | if fn == nil { |
| 135 | return "", false |
| 136 | } |
| 137 | elements := strings.Split(fn.Name(), ".") |
| 138 | shortName := elements[len(elements)-1] |
| 139 | return strings.TrimSuffix(shortName, "-fm"), true |
| 140 | } |
no test coverage detected