Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for perfunc (0.85 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. src/cmd/compile/internal/walk/builtin.go

    	nl := typecheck.TempAt(base.Pos, ir.CurFunc, n.X.Type())
    	nr := typecheck.TempAt(base.Pos, ir.CurFunc, n.Y.Type())
    	var l []ir.Node
    	l = append(l, ir.NewAssignStmt(base.Pos, nl, n.X))
    	l = append(l, ir.NewAssignStmt(base.Pos, nr, n.Y))
    
    	nfrm := ir.NewUnaryExpr(base.Pos, ir.OSPTR, nr)
    	nto := ir.NewUnaryExpr(base.Pos, ir.OSPTR, nl)
    
    	nlen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    
    	// n = len(to)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/walk/walk.go

    func Walk(fn *ir.Func) {
    	ir.CurFunc = fn
    	errorsBefore := base.Errors()
    	order(fn)
    	if base.Errors() > errorsBefore {
    		return
    	}
    
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("\nbefore walk %v", ir.CurFunc.Sym())
    		ir.DumpList(s, ir.CurFunc.Body)
    	}
    
    	walkStmtList(ir.CurFunc.Body)
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym())
    		ir.DumpList(s, ir.CurFunc.Body)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/assign.go

    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    	var_.SetTypecheck(1)
    	var_.MarkNonNil() // mapaccess always returns a non-nil pointer
    
    	n.Lhs[0] = var_
    	init.Append(walkExpr(n, init))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/expr.go

    	}
    	if outer.Sym() == nil {
    		base.Errorf("tracked field must be in named struct type")
    	}
    
    	sym := reflectdata.TrackSym(outer, field)
    	if ir.CurFunc.FieldTrack == nil {
    		ir.CurFunc.FieldTrack = make(map[*obj.LSym]struct{})
    	}
    	ir.CurFunc.FieldTrack[sym] = struct{}{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. 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)
Back to top