Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseGoroutineName (0.14 sec)

  1. 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)
Back to top