- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 204 for goroutines (0.22 sec)
-
src/cmd/trace/goroutines.go
ExecTimePercent string MaxTotal time.Duration Goroutines []goroutine NonOverlappingStats []string RangeStats []string }{ Name: name, N: len(goroutines), ExecTimePercent: execTimePercent, MaxTotal: maxTotalTime, Goroutines: goroutines, NonOverlappingStats: allNonOverlappingStats,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.9K bytes - Viewed (0) -
src/internal/trace/summary_test.go
} } } // Check goroutines. if len(want.goroutines) != len(summary.Goroutines) { t.Errorf("wanted %d goroutines for task %d, got %d goroutines instead", len(want.goroutines), id, len(summary.Goroutines)) } else { for _, goid := range want.goroutines { g, ok := summary.Goroutines[goid] if !ok { t.Errorf("want goroutine %d for task %d, not found", goid, id) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 13.4K bytes - Viewed (0) -
src/internal/trace/summary.go
CreationTime Time // Timestamp of the first appearance in the trace. StartTime Time // Timestamp of the first time it started running. 0 if the goroutine never ran. EndTime Time // Timestamp of when the goroutine exited. 0 if the goroutine never exited. // List of regions in the goroutine, sorted based on the start time. Regions []*UserRegionSummary // Statistics of execution time during the goroutine execution.
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/runtime/extern.go
"freezes the world", preempting all threads to stop all running goroutines, which makes it possible to traceback all goroutines, and keeps their state close to the point of panic. Setting dontfreezetheworld=1 disables this preemption, allowing goroutines to continue executing during panic processing. Note that goroutines that naturally enter the scheduler will still stop. This can be useful when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 18.9K bytes - Viewed (0) -
src/runtime/runtime_test.go
// Calling GoroutineProfile twice in a row should find the same number of goroutines, // but it's possible there are goroutines just about to exit, so we might end up // with fewer in the second call. Try a few times; it should converge once those // zombies are gone. for i := 0; ; i++ { n1, ok := GoroutineProfile(nil) // should fail, there's at least 1 goroutine if n1 < 1 || ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/iter/pull_test.go
// to Gosched back into itself, so we require NumGoroutine to be // the same 100 times in a row. This should be more than enough to // ensure all goroutines get a chance to run to completion (or to // some block point) for a small group of test goroutines. defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1)) c := 0 ng := runtime.NumGoroutine() for i := 0; i < 1000; i++ { nng := runtime.NumGoroutine() if nng == ng {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/trace/pprof.go
if stack == trace.NoStack { continue } // The state transition has to apply to a goroutine. st := ev.StateTransition() if st.Resource.Kind != trace.ResourceGoroutine { continue } id := st.Resource.Goroutine() _, new := st.Goroutine() // Check if we're tracking this goroutine. startEv := tracking[id] if startEv == nil { // We're not. Start tracking if the new state
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.1K bytes - Viewed (0) -
src/runtime/runtime2.go
} // ancestorInfo records details of where a goroutine was started. type ancestorInfo struct { pcs []uintptr // pcs from the stack of this goroutine goid uint64 // goroutine id of this goroutine; original goroutine possibly dead gopc uintptr // pc of go statement that created this goroutine } // A waitReason explains why a goroutine has been stopped.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 47.9K bytes - Viewed (0) -
src/runtime/debug/garbage.go
// The initial setting is 10,000 threads. // // The limit controls the number of operating system threads, not the number // of goroutines. A Go program creates a new thread only when a goroutine // is ready to run but all the existing threads are blocked in system calls, cgo calls, // or are locked to other goroutines due to use of runtime.LockOSThread. // // SetMaxThreads is useful mainly for limiting the damage done by
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.9K bytes - Viewed (0) -
src/internal/trace/trace_test.go
delete(gs, ev.Goroutine()) } // Track state transitions for goroutines we care about. // // The goroutines we care about will advance through the state machine // of entered -> blocked -> runnable -> running. If in the running state // we block, then we have a futile wakeup. Because of the runtime.Gosched // on these specially marked goroutines, we should end up back in runnable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 18.5K bytes - Viewed (0)