Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RelatedGoroutinesV2 (0.17 sec)

  1. src/cmd/trace/jsontrace.go

    				opts.endTime = g.EndTime.Sub(parsed.startTime())
    			} else { // The goroutine didn't end.
    				opts.endTime = parsed.endTime().Sub(parsed.startTime())
    			}
    			opts.focusGoroutine = goid
    			opts.goroutines = trace.RelatedGoroutinesV2(parsed.events, goid)
    		} else if taskids := r.FormValue("focustask"); taskids != "" {
    			taskid, err := strconv.ParseUint(taskids, 10, 64)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/internal/trace/summary.go

    	}
    	return &Summary{
    		Goroutines: s.gs,
    		Tasks:      s.tasks,
    	}
    }
    
    // RelatedGoroutinesV2 finds a set of goroutines related to goroutine goid for v2 traces.
    // The association is based on whether they have synchronized with each other in the Go
    // scheduler (one has unblocked another).
    func RelatedGoroutinesV2(events []Event, goid GoID) map[GoID]struct{} {
    	// Process all the events, looking for transitions of goroutines
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. src/internal/trace/summary_test.go

    		}
    		if err != nil {
    			t.Fatalf("failed to process trace %s: %v", testPath, err)
    		}
    		events = append(events, ev)
    	}
    
    	// Test the function.
    	targetg := trace.GoID(86)
    	got := trace.RelatedGoroutinesV2(events, targetg)
    	want := map[trace.GoID]struct{}{
    		trace.GoID(86):  struct{}{}, // N.B. Result includes target.
    		trace.GoID(71):  struct{}{},
    		trace.GoID(25):  struct{}{},
    		trace.GoID(122): struct{}{},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top