Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,094 for allocations (0.17 sec)

  1. pkg/registry/core/service/portallocator/metrics.go

    		},
    	)
    	// nodePortAllocation counts the total number of ports allocation and allocation mode: static or dynamic.
    	nodePortAllocations = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "allocation_total",
    			Help:           "Number of NodePort allocations",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"scope"},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 06:44:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/runtime/pprof/mprof_test.go

    	link *Obj32
    	pad  [32 - unsafe.Sizeof(uintptr(0))]byte
    }
    
    var persistentMemSink *Obj32
    
    func allocatePersistent1K() {
    	for i := 0; i < 32; i++ {
    		// Can't use slice because that will introduce implicit allocations.
    		obj := &Obj32{link: persistentMemSink}
    		persistentMemSink = obj
    	}
    }
    
    // Allocate transient memory using reflect.Call.
    
    func allocateReflectTransient() {
    	memSink = make([]byte, 2<<20)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:20:22 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  3. src/runtime/internal/sys/nih.go

    // `sysAlloc`, `persistentalloc`, r`fixalloc`, or from a manually-managed span).
    //
    // Specifically:
    //
    // 1. `new(T)`, `make([]T)`, `append([]T, ...)` and implicit heap
    // allocation of T are disallowed. (Though implicit allocations are
    // disallowed in the runtime anyway.)
    //
    // 2. A pointer to a regular type (other than `unsafe.Pointer`) cannot be
    // converted to a pointer to a not-in-heap type, even if they have the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 18:24:50 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. src/syscall/tables_wasip1.go

    	ENOTCAPABLE:     "Capabilities insufficient",
    }
    
    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = EAGAIN
    	errEINVAL error = EINVAL
    	errENOENT error = ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    //
    // We set both noinline and nosplit to reduce code size, this function has many
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. pkg/monitoring/distribution.go

    	api "go.opentelemetry.io/otel/metric"
    
    	"istio.io/istio/pkg/log"
    )
    
    type distribution struct {
    	baseMetric
    	d api.Float64Histogram
    	// precomputedRecordOption is just a precomputation to avoid allocations on each record call
    	precomputedRecordOption []api.RecordOption
    }
    
    var _ Metric = &distribution{}
    
    func newDistribution(o options) *distribution {
    	d, err := meter().Float64Histogram(o.name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    		}
    	})
    
    	t.Run("toBytes allocations", func(t *testing.T) {
    		t.Parallel()
    
    		s := utilrand.String(size)
    		f := func() {
    			b := toBytes(s)
    			if len(b) != size {
    				t.Errorf("invalid length: %d", len(b))
    			}
    		}
    		allocs := testing.AllocsPerRun(100, f)
    		if allocs > 0 {
    			t.Errorf("expected zero allocations, got %v", allocs)
    		}
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go

    limitations under the License.
    */
    
    package runtime
    
    import (
    	"sync"
    )
    
    // AllocatorPool simply stores Allocator objects to avoid additional memory allocations
    // by caching created but unused items for later reuse, relieving pressure on the garbage collector.
    //
    // Usage:
    //
    //	memoryAllocator := runtime.AllocatorPool.Get().(*runtime.Allocator)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. pkg/monitoring/counter.go

    import (
    	"context"
    
    	api "go.opentelemetry.io/otel/metric"
    
    	"istio.io/istio/pkg/log"
    )
    
    type counter struct {
    	baseMetric
    	c api.Float64Counter
    	// precomputedAddOption is just a precomputation to avoid allocations on each record call
    	precomputedAddOption []api.AddOption
    }
    
    var _ Metric = &counter{}
    
    func newCounter(o options) *counter {
    	c, err := meter().Float64Counter(o.name,
    		api.WithDescription(o.description),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/metrics.go

    		},
    		[]string{"cidr"},
    	)
    	// clusterIPAllocation counts the total number of ClusterIP allocation and allocation mode: static or dynamic.
    	clusterIPAllocations = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "allocation_total",
    			Help:           "Number of Cluster IPs allocations",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"cidr", "scope"},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 13 13:33:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. pkg/controller/nodeipam/ipam/cidrset/metrics.go

    var (
    	cidrSetAllocations = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Subsystem:      nodeIpamSubsystem,
    			Name:           "cidrset_cidrs_allocations_total",
    			Help:           "Counter measuring total number of CIDR allocations.",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"clusterCIDR"},
    	)
    	cidrSetReleases = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Subsystem:      nodeIpamSubsystem,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 05 15:18:45 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top