Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for perfunc (0.18 sec)

  1. pkg/kubelet/eviction/eviction_manager.go

    func (m *managerImpl) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	thresholdHandler := func(message string) {
    		klog.InfoS(message)
    		m.synchronize(diskInfoProvider, podFunc)
    	}
    	if m.config.KernelMemcgNotification {
    		for _, threshold := range m.config.Thresholds {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. pkg/controller/deployment/deployment_controller_test.go

    		t.Fatalf("queue.Len() = %v, want %v", got, want)
    	}
    	key, done := dc.queue.Get()
    	if key == "" || done {
    		t.Fatalf("failed to enqueue controller for rs %v", rs1.Name)
    	}
    	expectedKey, _ := controller.KeyFunc(d1)
    	if got, want := key, expectedKey; got != want {
    		t.Errorf("queue.Get() = %v, want %v", got, want)
    	}
    
    	dc.addReplicaSet(logger, rs2)
    	if got, want := dc.queue.Len(), 1; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

            mirrored_replicate_args.insert(
                mlir::cast<IntegerAttr>(mirrored_index).getInt());
          }
        }
        auto func =
            llvm::cast<func::FuncOp>(m.lookupSymbol(cluster_func.getFunc()));
        for (auto entry : llvm::enumerate(cluster_func.getOperands())) {
          auto operand = SkipIdentityAndReadVariable(entry.value());
          auto block_arg = mlir::dyn_cast<BlockArgument>(operand);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object.go

    	origin      *Func // if non-nil, the Func from which this one was instantiated
    }
    
    // NewFunc returns a new function with the given signature, representing
    // the function's type.
    func NewFunc(pos syntax.Pos, pkg *Package, name string, sig *Signature) *Func {
    	var typ Type
    	if sig != nil {
    		typ = sig
    	} else {
    		// Don't store a (typed) nil *Signature.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. pkg/controller/disruption/disruption_test.go

    )
    
    type pdbStates map[string]policy.PodDisruptionBudget
    
    var alwaysReady = func() bool { return true }
    
    func (ps *pdbStates) Set(ctx context.Context, pdb *policy.PodDisruptionBudget) error {
    	key, err := controller.KeyFunc(pdb)
    	if err != nil {
    		return err
    	}
    	(*ps)[key] = *pdb.DeepCopy()
    	return nil
    }
    
    func (ps *pdbStates) Get(key string) policy.PodDisruptionBudget {
    	return (*ps)[key]
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  6. pkg/registry/storagemigration/storagemigration/storage/storage.go

    // NewREST returns a RESTStorage object for ClusterTrustBundle objects.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:     func() runtime.Object { return &svmapi.StorageVersionMigration{} },
    		NewListFunc: func() runtime.Object { return &svmapi.StorageVersionMigrationList{} },
    		ObjectNameFunc: func(obj runtime.Object) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/ureader.go

    	implicit := len(methods) == 0 && len(embeddeds) == 1 && r.Bool()
    
    	for i := range methods {
    		pos := r.pos()
    		pkg, name := r.selector()
    		mtyp := r.signature(nil, nil, nil)
    		methods[i] = types.NewFunc(pos, pkg, name, mtyp)
    	}
    
    	for i := range embeddeds {
    		embeddeds[i] = r.typ()
    	}
    
    	iface := types.NewInterfaceType(methods, embeddeds)
    	if implicit {
    		iface.MarkImplicit()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    var lockerType *types.Interface
    
    // Construct a sync.Locker interface type.
    func init() {
    	nullary := types.NewSignature(nil, nil, nil, false) // func()
    	methods := []*types.Func{
    		types.NewFunc(token.NoPos, nil, "Lock", nullary),
    		types.NewFunc(token.NoPos, nil, "Unlock", nullary),
    	}
    	lockerType = types.NewInterface(methods, nil).Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/named_test.go

    		pkg := mustTypecheck(src, nil, nil)
    		T := pkg.Scope().Lookup("T").Type().(*Named)
    
    		// add a few more methods manually
    		for _, name := range []string{"foo", "bar", "bal"} {
    			m := NewFunc(nopos, pkg, name, nil /* don't care about signature */)
    			T.AddMethod(m)
    		}
    
    		// check method order
    		if i == 0 {
    			// first round: collect methods in given order
    			methods = make([]string, T.NumMethods())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. pkg/controller/daemon/daemon_controller.go

    	oldDS := old.(*apps.DaemonSet)
    	curDS := cur.(*apps.DaemonSet)
    
    	// TODO: make a KEP and fix informers to always call the delete event handler on re-create
    	if curDS.UID != oldDS.UID {
    		key, err := controller.KeyFunc(oldDS)
    		if err != nil {
    			utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", oldDS, err))
    			return
    		}
    		dsc.deleteDaemonset(logger, cache.DeletedFinalStateUnknown{
    			Key: key,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
Back to top