- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 805 for goroutineID (0.43 sec)
-
src/internal/trace/parser.go
EvGoCreate = 13 // goroutine creation [timestamp, new goroutine id, new stack id, stack id] EvGoStart = 14 // goroutine starts running [timestamp, goroutine id, seq] EvGoEnd = 15 // goroutine ends [timestamp] EvGoStop = 16 // goroutine stops (like in select{}) [timestamp, stack] EvGoSched = 17 // goroutine calls Gosched [timestamp, stack]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0) -
src/os/pipe_test.go
} r, w, err := os.Pipe() if err != nil { t.Fatal(err) } defer r.Close() defer w.Close() // Close the read end of the pipe in a goroutine while we are // writing to the write end, or vice-versa. go func() { // Give the main goroutine a chance to enter the Read or // Write call. This is sloppy but the test will pass even // if we close before the read/write. time.Sleep(20 * time.Millisecond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 12.4K bytes - Viewed (0) -
src/math/rand/default_test.go
// Call Seed and Uint64 concurrently. wg.Add(goroutines) for i := 0; i < goroutines; i++ { go func(s int64) { defer wg.Done() Seed(s) }(int64(i) + 100) } wg.Add(goroutines) for i := 0; i < goroutines; i++ { go func() { defer wg.Done() ch <- Uint64() }() } case 1: // Call Uint64 concurrently with no Seed. wg.Add(goroutines) for i := 0; i < goroutines; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 07 23:39:35 UTC 2023 - 3.4K bytes - Viewed (0) -
src/runtime/pprof/runtime_test.go
if gotLabels := getProfLabel(); !reflect.DeepEqual(gotLabels, wantLabels) { t.Errorf("Expected parent goroutine's profile labels to be empty before test, got %v", gotLabels) } go func() { if gotLabels := getProfLabel(); !reflect.DeepEqual(gotLabels, wantLabels) { t.Errorf("Expected child goroutine's profile labels to be empty before test, got %v", gotLabels) } sync <- struct{}{} }() <-sync
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 20:29:37 UTC 2017 - 3K bytes - Viewed (0) -
src/syscall/exec_plan9.go
} // startProcess starts a new goroutine, tied to the OS // thread, which runs the process and subsequently waits // for it to finish, communicating the process stats back // to any goroutines that may have been waiting on it. // // Such a dedicated goroutine is needed because on // Plan 9, only the parent thread can wait for a child, // whereas goroutines tend to jump OS threads (e.g.,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 13.3K bytes - Viewed (0) -
src/runtime/panic.go
break } fn() } } // Goexit terminates the goroutine that calls it. No other goroutine is affected. // Goexit runs all deferred calls before terminating the goroutine. Because Goexit // is not a panic, any recover calls in those deferred functions will return nil. // // Calling Goexit from the main goroutine terminates that goroutine // without func main returning. Since func main has not returned,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/runtime/debugcall.go
if up != abi.UnsafePointSafe { // Not at a safe point. ret = debugCallUnsafePoint } }) return ret } // debugCallWrap starts a new goroutine to run a debug call and blocks // the calling goroutine. On the goroutine, it prepares to recover // panics from the debug call, and then calls the call dispatching // function at PC dispatch. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 20:50:21 UTC 2024 - 7.1K bytes - Viewed (0) -
src/internal/trace/event.go
// For example, a ResourceGoroutine scope means that the same goroutine // must have a start and end for the range, and that goroutine can only // have one range of a particular name active at any given time. The // ID that this range is scoped to may be obtained via Event.Goroutine. // // The ResourceNone scope means that the range is globally scoped. As a // result, any goroutine/proc/thread may start or end the range, and only
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:39:00 UTC 2024 - 28.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/mutating_work_estimator.go
// we will work on tuning the algorithm later. Given that the actual work // associated with processing watch events is happening in multiple // goroutines (proportional to the number of watchers) that are all // resumed at once, as a starting point we assume that each such goroutine // is taking 1/Nth of a seat for M milliseconds. // We allow the accounting of that work in P&F to be reshaped into another
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 19:26:52 UTC 2023 - 6K bytes - Viewed (0) -
src/sync/pool_test.go
time.Sleep(time.Millisecond) return 42 } var mstats1, mstats2 runtime.MemStats runtime.ReadMemStats(&mstats1) b.RunParallel(func(pb *testing.PB) { // Simulate 100X the number of goroutines having items // checked out from the Pool simultaneously. items := make([]any, 100) var sink []byte for pb.Next() { // Stress the pool. for i := range items { items[i] = p.Get()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0)