- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parseGoroutineName (0.12 sec)
-
src/cmd/trace/jsontrace_test.go
func filterGoRoutineName(name string) eventFilterFn { return func(e *format.Event, _ *format.Data) bool { return parseGoroutineName(e) == name } } // parseGoroutineName returns the goroutine name from the event's name field. // E.g. if e.Name is "G42 main.cpu10", this returns "main.cpu10". func parseGoroutineName(e *format.Event) string { parts := strings.SplitN(e.Name, " ", 2) if len(parts) != 2 || !strings.HasPrefix(parts[0], "G") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0)