Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 805 for goroutineID (0.16 sec)

  1. pkg/scheduler/framework/parallelize/parallelism.go

    // Until is a wrapper around workqueue.ParallelizeUntil to use in scheduling algorithms.
    // A given operation will be a label that is recorded in the goroutine metric.
    func (p Parallelizer) Until(ctx context.Context, pieces int, doWorkPiece workqueue.DoWorkPieceFunc, operation string) {
    	goroutinesMetric := metrics.Goroutines.WithLabelValues(operation)
    	withMetrics := func(piece int) {
    		goroutinesMetric.Inc()
    		doWorkPiece(piece)
    		goroutinesMetric.Dec()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 17:12:30 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    			}
    			continue
    		}
    
    		// Search for "goroutine GID [STATUS]"
    		if !on {
    			if strings.HasPrefix(line, "goroutine ") &&
    				strings.Contains(line, " [running]:") {
    				on = true
    
    				if parentSentinel == 0 {
    					return nil, fmt.Errorf("no sentinel value in crash report")
    				}
    			}
    			continue
    		}
    
    		// A blank line marks end of a goroutine stack.
    		if line == "" {
    			break
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/internal/trace/order.go

    		return fmt.Errorf("expected no proc but had one")
    	}
    
    	// Check goroutine requirements.
    	if reqs.Goroutine == event.MustHave && ctx.G == NoGoroutine {
    		return fmt.Errorf("expected a goroutine but didn't have one")
    	} else if reqs.Goroutine == event.MustNotHave && ctx.G != NoGoroutine {
    		return fmt.Errorf("expected no goroutine but had one")
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  4. src/cmd/trace/gstate.go

    	activeRanges map[string]activeRange
    
    	// completedRanges is a list of ranges that completed since before the
    	// goroutine stopped executing. These are flushed on every stop or block.
    	completedRanges []completedRange
    
    	// startRunning is the most recent event that caused a goroutine to
    	// transition to GoRunning.
    	startRunningTime trace.Time
    
    	// startSyscall is the most recent event that caused a goroutine to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. pkg/kube/informerfactory/factory.go

    	// doing anything.
    	//
    	// In addition, Shutdown blocks until all goroutines have terminated. For that
    	// to happen, the close channel(s) that they were started with must be closed,
    	// either before Shutdown gets called or while it is waiting.
    	//
    	// Shutdown may be called multiple times, even concurrently. All such calls will
    	// block until all goroutines have terminated.
    	Shutdown()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. src/testing/benchmark.go

    // It creates multiple goroutines and distributes b.N iterations among them.
    // The number of goroutines defaults to GOMAXPROCS. To increase parallelism for
    // non-CPU-bound benchmarks, call [B.SetParallelism] before RunParallel.
    // RunParallel is usually used with the go test -cpu flag.
    //
    // The body function will be run in each goroutine. It should set up any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/factory.go

    	// This allows Start() to be called multiple times safely.
    	startedInformers map[reflect.Type]bool
    	// wg tracks how many goroutines were started.
    	wg sync.WaitGroup
    	// shuttingDown is true when Shutdown has been called. It may still be running
    	// because it needs to wait for goroutines.
    	shuttingDown bool
    }
    
    // WithCustomResyncConfig sets a custom resync period for the specified informer types.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/factory.go

    	// This allows Start() to be called multiple times safely.
    	startedInformers map[reflect.Type]bool
    	// wg tracks how many goroutines were started.
    	wg sync.WaitGroup
    	// shuttingDown is true when Shutdown has been called. It may still be running
    	// because it needs to wait for goroutines.
    	shuttingDown bool
    }
    
    // WithCustomResyncConfig sets a custom resync period for the specified informer types.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/wasm/ssa.go

       The main loop that executes goroutines is wasm_pc_f_loop, in
       runtime/rt0_js_wasm.s. It grabs the saved return address from
       the top of the Go stack (actually SP-8?), splits it up into F
       and B parts, then calls F with its Wasm argument set to B.
    
       Note that when resuming a goroutine, only the most recent function
       invocation of that goroutine appears on the Wasm stack. When that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. src/runtime/stack_test.go

    	stk := string(b[:Stack(b, false)])
    	if !strings.HasPrefix(stk, "goroutine ") {
    		t.Errorf("Stack (len %d):\n%s", len(stk), stk)
    		t.Errorf("Stack output should begin with \"goroutine \"")
    	}
    }
    
    func TestStackAllOutput(t *testing.T) {
    	b := make([]byte, 1024)
    	stk := string(b[:Stack(b, true)])
    	if !strings.HasPrefix(stk, "goroutine ") {
    		t.Errorf("Stack (len %d):\n%s", len(stk), stk)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top