Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for perfunc (0.87 sec)

  1. src/cmd/cover/cover.go

    	}
    	switch pkgconfig.Granularity {
    	case "perblock":
    		cgran = coverage.CtrGranularityPerBlock
    	case "perfunc":
    		cgran = coverage.CtrGranularityPerFunc
    	default:
    		return fmt.Errorf(`%s: pkgconfig requires perblock/perfunc value`, path)
    	}
    	return nil
    }
    
    // Block represents the information about a basic block to be recorded in the analysis.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    		Storage:        wrappedStorage,
    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: setupOpts.resourcePrefix,
    		KeyFunc:        setupOpts.keyFunc,
    		GetAttrsFunc:   GetPodAttrs,
    		NewFunc:        newPod,
    		NewListFunc:    newPodList,
    		IndexerFuncs:   setupOpts.indexerFuncs,
    		Codec:          codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func.go

    		}
    	}
    
    	return "", name
    }
    
    var CurFunc *Func
    
    // WithFunc invokes do with CurFunc and base.Pos set to curfn and
    // curfn.Pos(), respectively, and then restores their previous values
    // before returning.
    func WithFunc(curfn *Func, do func()) {
    	oldfn, oldpos := CurFunc, base.Pos
    	defer func() { CurFunc, base.Pos = oldfn, oldpos }()
    
    	CurFunc, base.Pos = curfn, curfn.Pos()
    	do()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    		n := ir.NewReturnStmt(base.Pos, nil)
    		n.Results = []ir.Node{call}
    		tail = n
    	}
    	fn.Body.Append(tail)
    
    	typecheck.FinishFuncBody()
    
    	ir.CurFunc = fn
    	typecheck.Stmts(fn.Body)
    
    	// Restore previous context.
    	base.Pos = savepos
    	ir.CurFunc = savedcurfn
    }
    
    // CreateWasmImportWrapper creates a wrapper for imported WASM functions to
    // adapt them to the Go calling convention. The body for this function is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. pkg/proxy/iptables/number_generated_rules_test.go

    			}
    			// test the function to mutate endpoint slices
    			epsFunc := func(eps *discovery.EndpointSlice) {
    				for i := range eps.Endpoints {
    					nodeName := fmt.Sprintf("node-%d", i)
    					eps.Endpoints[i].NodeName = &nodeName
    				}
    			}
    
    			svcs, eps := generateServiceEndpoints(test.services, test.epPerService, epsFunc, svcFunc)
    
    			if len(svcs) != test.services {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	upperBoundCapacity int
    
    	// lower bound of capacity since event cache has a dynamic size.
    	lowerBoundCapacity int
    
    	// keyFunc is used to get a key in the underlying storage for a given object.
    	keyFunc func(runtime.Object) (string, error)
    
    	// getAttrsFunc is used to get labels and fields of an object.
    	getAttrsFunc func(runtime.Object) (labels.Set, fields.Set, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. pkg/kube/kclient/client.go

    						for _, c := range ic.registeredHandlers {
    							c.handler.OnDelete(item)
    						}
    					}
    				}
    			}
    		})
    	}
    }
    
    // keyFunc is the internal API key function that returns "namespace"/"name" or
    // "name" if "namespace" is empty
    func keyFunc(name, namespace string) string {
    	if len(namespace) == 0 {
    		return name
    	}
    	return namespace + "/" + name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/go/internal/gcimporter/iimport.go

    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    			tparams = r.tparamList()
    		}
    		sig := r.signature(nil, nil, tparams)
    		r.declare(types.NewFunc(pos, r.currPkg, name, sig))
    
    	case 'T', 'U':
    		// Types can be recursive. We need to setup a stub
    		// declaration before recurring.
    		obj := types.NewTypeName(pos, r.currPkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top