- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RelatedGoroutinesV2 (0.15 sec)
-
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) -
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)