Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for perfunc (0.34 sec)

  1. src/cmd/internal/cov/covcmd/cmddefs.go

    	// when instrumentation is complete.
    	OutConfig string
    
    	// Import path for the package being instrumented.
    	PkgPath string
    
    	// Package name.
    	PkgName string
    
    	// Instrumentation granularity: one of "perfunc" or "perblock" (default)
    	Granularity string
    
    	// Module path for this package (empty if no go.mod in use)
    	ModulePath string
    
    	// Local mode indicates we're doing a coverage build or test of a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K 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/storage_decorator.go

    	config *storagebackend.ConfigForResource,
    	resourcePrefix string,
    	keyFunc func(obj runtime.Object) (string, error),
    	newFunc func() runtime.Object,
    	newListFunc func() runtime.Object,
    	getAttrsFunc storage.AttrFunc,
    	trigger storage.IndexerFuncs,
    	indexers *cache.Indexers) (storage.Interface, factory.DestroyFunc, error) {
    	return NewRawStorage(config, newFunc, newListFunc, resourcePrefix)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/storage_factory.go

    			klogV.InfoS("Storage caching is enabled", objectTypeToArgs(newFunc())...)
    		}
    
    		cacherConfig := cacherstorage.Config{
    			Storage:        s,
    			Versioner:      storage.APIObjectVersioner{},
    			GroupResource:  storageConfig.GroupResource,
    			ResourcePrefix: resourcePrefix,
    			KeyFunc:        keyFunc,
    			NewFunc:        newFunc,
    			NewListFunc:    newListFunc,
    			GetAttrsFunc:   getAttrsFunc,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/dcl.go

    	funcStack = append(funcStack, ir.CurFunc)
    	ir.CurFunc = fn
    }
    
    // FinishFuncBody restores ir.CurFunc to its state before the last
    // call to DeclFunc.
    func FinishFuncBody() {
    	funcStack, ir.CurFunc = funcStack[:len(funcStack)-1], funcStack[len(funcStack)-1]
    }
    
    func CheckFuncStack() {
    	if len(funcStack) != 0 {
    		base.Fatalf("funcStack is non-empty: %v", len(funcStack))
    	}
    }
    
    // make a new Node off the books.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue56923.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type Eq[T any] interface {
    	Eqv(a T, b T) bool
    }
    
    type EqFunc[T any] func(a, b T) bool
    
    func (r EqFunc[T]) Eqv(a, b T) bool {
    	return r(a, b)
    }
    
    func New[T any](f func(a, b T) bool) Eq[T] {
    	return EqFunc[T](f)
    }
    
    func Equal(a, b []byte) bool {
    	return string(a) == string(b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 496 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache.go

    	}
    	if transformer == nil {
    		panic("transformer must not be nil")
    	}
    	c.cache.Set(c.keyFunc(key), transformer, c.ttl)
    	// Add metrics for cache size
    	c.recordCacheSize(c.providerName, c.cache.Len())
    }
    
    // keyFunc generates a string key by hashing the inputs.
    // This lowers the memory requirement of the cache.
    func (c *simpleCache) keyFunc(s []byte) string {
    	h := c.hashPool.Get().(hash.Hash)
    	h.Reset()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 31 20:26:58 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/select.go

    	// generate sel-struct
    	base.Pos = sellineno
    	selv := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(scasetype(), int64(ncas)))
    	init = append(init, typecheck.Stmt(ir.NewAssignStmt(base.Pos, selv, nil)))
    
    	// No initialization for order; runtime.selectgo is responsible for that.
    	order := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINT16], 2*int64(ncas)))
    
    	var pc0, pcs ir.Node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. 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)
Back to top