Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 842 for allocations (0.42 sec)

  1. 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)
  2. test/finprofiled.go

    // run
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that tiny allocations with finalizers are correctly profiled.
    // Previously profile special records could have been processed prematurely
    // (while the object is still live).
    
    package main
    
    import (
    	"runtime"
    	"time"
    	"unsafe"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_static.go

    //
    //   - ASSIGNABLE: Equal to SHARED - RESERVED. Exclusive CPUs are allocated
    //     from this pool.
    //
    //   - EXCLUSIVE ALLOCATIONS: CPU sets assigned exclusively to one container.
    //     These are stored as explicit assignments in the state.
    //
    // When an exclusive allocation is made, the static policy also updates the
    // default cpuset in the state abstraction. The CPU manager's periodic
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/ImmutableCapabilities.java

     *
     * This type will ensure that all contents are immutable upon construction,
     * in order to allow instances of this type to be safely reused whenever possible
     * to avoid unnecessary memory allocations.
     *
     * Note that while this class is not itself {@code final}, all fields are private, so
     * subclassing should not break the immutability contract.
     */
    public class ImmutableCapabilities {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. pkg/model/authentication.go

    	SDSDefaultResourceName = "default"
    
    	// SDSRootResourceName is the sdsconfig name for root CA, used for fetching root cert.
    	SDSRootResourceName = "ROOTCA"
    )
    
    // Preconfigured SDS configs to avoid excessive memory allocations
    var (
    	defaultSDSConfig = &tls.SdsSecretConfig{
    		Name: SDSDefaultResourceName,
    		SdsConfig: &core.ConfigSource{
    			ConfigSourceSpecifier: &core.ConfigSource_ApiConfigSource{
    				ApiConfigSource: &core.ApiConfigSource{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. pkg/registry/resource/resourceslice/strategy.go

    // TODO: fields are not labels, and the validation rules for them do not apply.
    func toSelectableFields(slice *resource.ResourceSlice) fields.Set {
    	// The purpose of allocation with a given number of elements is to reduce
    	// amount of allocations needed to create the fields.Set. If you add any
    	// field here or the number of object-meta related fields changes, this should
    	// be adjusted.
    	fields := make(fields.Set, 3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/cache.go

    	}
    	c.cache.Set(keyFunc(dataCtx), transformer, c.ttl)
    }
    
    func keyFunc(dataCtx value.Context) string {
    	return toString(dataCtx.AuthenticatedData())
    }
    
    // toString performs unholy acts to avoid allocations
    func toString(b []byte) string {
    	// unsafe.SliceData relies on cap whereas we want to rely on len
    	if len(b) == 0 {
    		return ""
    	}
    	// Copied from go 1.20.1 strings.Builder.String
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. src/runtime/pprof/protomem.go

    		})
    	}
    	b.build()
    	return nil
    }
    
    // scaleHeapSample adjusts the data from a heap Sample to
    // account for its probability of appearing in the collected
    // data. heap profiles are a sampling of the memory allocations
    // requests in a program. We estimate the unsampled value by dividing
    // each collected sample by its probability of appearing in the
    // profile. heap profiles rely on a poisson process to determine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/p256.go

    // SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the point at
    // infinity is shorter than all other encodings.
    func (p *P256Point) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [1 + 2*p256ElementLength]byte
    	return p.bytes(&out)
    }
    
    func (p *P256Point) bytes(out *[1 + 2*p256ElementLength]byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/lib/panels.libsonnet

          + timeSeries.standardOptions.withUnit('bytes'),
    
        bytesRate(title, targets, desc=''):
          self.base(title, targets, desc)
          + timeSeries.standardOptions.withUnit('Bps'),
    
        allocations(title, targets, desc=''):
          self.base(title, targets, desc)
          + timeSeries.standardOptions.withUnit('Bps')
          + timeSeries.standardOptions.withOverrides([
            fieldOverride.byQuery.new('B')
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top