Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for perfunc (0.34 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. src/cmd/compile/internal/coverage/cover.go

    		base.Fatalf("bad setting %q for covermode in coveragecfg:",
    			counterMode)
    	}
    	var cg coverage.CounterGranularity
    	switch counterGran {
    	case "perblock":
    		cg = coverage.CtrGranularityPerBlock
    	case "perfunc":
    		cg = coverage.CtrGranularityPerFunc
    	default:
    		base.Fatalf("bad setting %q for covergranularity in coveragecfg:",
    			counterGran)
    	}
    
    	cnames := names{
    		MetaVar:     metavar,
    		PkgIdVar:    pkgidvar,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. src/cmd/cover/cfg_test.go

    		t.Fatal(err)
    	}
    
    	scenarios := []struct {
    		mode, gran string
    	}{
    		{
    			mode: "count",
    			gran: "perblock",
    		},
    		{
    			mode: "set",
    			gran: "perfunc",
    		},
    		{
    			mode: "regonly",
    			gran: "perblock",
    		},
    	}
    
    	var incfg string
    	apkgfiles := []string{filepath.Join(tpath, "a", "a.go")}
    	for _, scenario := range scenarios {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	//
    	// KeyRootFunc and KeyFunc must be supplied together or not at all.
    	KeyRootFunc func(ctx context.Context) string
    
    	// KeyFunc returns the key for a specific object in the collection.
    	// KeyFunc is called for Create/Update/Get/Delete. Note that 'namespace'
    	// can be gotten from ctx.
    	//
    	// KeyFunc and KeyRootFunc must be supplied together or not at all.
    	KeyFunc func(ctx context.Context, name string) (string, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/walk/temp.go

    // allocated temporary variable of the given type. Statements to
    // zero-initialize tmp are appended to init.
    func stackTempAddr(init *ir.Nodes, typ *types.Type) *ir.AddrExpr {
    	n := typecheck.TempAt(base.Pos, ir.CurFunc, typ)
    	n.SetNonMergeable(true)
    	return initStackTemp(init, n, nil)
    }
    
    // stackBufAddr returns the expression &tmp, where tmp is a newly
    // allocated temporary variable of type [len]elem. This variable is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. 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)
Back to top