Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,018 for allDocs (0.22 sec)

  1. pkg/kubelet/metrics/collectors/volume_stats.go

    	}
    	allPVCs := sets.Set[string]{}
    	for _, podStat := range podStats {
    		if podStat.VolumeStats == nil {
    			continue
    		}
    		for _, volumeStat := range podStat.VolumeStats {
    			pvcRef := volumeStat.PVCRef
    			if pvcRef == nil {
    				// ignore if no PVC reference
    				continue
    			}
    			pvcUniqStr := pvcRef.Namespace + "/" + pvcRef.Name
    			if allPVCs.Has(pvcUniqStr) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. test/chan/select2.go

    	runtime.ReadMemStats(memstats)
    	alloc := memstats.Alloc
    
    	// second time shouldn't increase footprint by much
    	go sender(c, 100000)
    	receiver(c, dummy, 100000)
    	runtime.GC()
    	runtime.ReadMemStats(memstats)
    
    	// Be careful to avoid wraparound.
    	if memstats.Alloc > alloc && memstats.Alloc-alloc > 1.1e5 {
    		println("BUG: too much memory for 100,000 selects:", memstats.Alloc-alloc)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1K bytes
    - Viewed (0)
  3. test/escape4.go

    package foo
    
    var p *int
    
    func alloc(x int) *int { // ERROR "can inline alloc" "moved to heap: x"
    	return &x
    }
    
    var f func()
    
    func f1() {
    	p = alloc(2) // ERROR "inlining call to alloc" "moved to heap: x"
    
    	// Escape analysis used to miss inlined code in closures.
    
    	func() { // ERROR "can inline f1.func1"
    		p = alloc(3) // ERROR "inlining call to alloc"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/edwards25519_test.go

    func TestAllocations(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t)
    
    	if allocs := testing.AllocsPerRun(100, func() {
    		p := NewIdentityPoint()
    		p.Add(p, NewGeneratorPoint())
    		s := NewScalar()
    		testAllocationsSink ^= s.Bytes()[0]
    		testAllocationsSink ^= p.Bytes()[0]
    	}); allocs > 0 {
    		t.Errorf("expected zero allocations, got %0.1v", allocs)
    	}
    }
    
    func decodeHex(s string) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/listers/cr/v1/expansion_generated.go

    limitations under the License.
    */
    
    // Code generated by lister-gen. DO NOT EDIT.
    
    package v1
    
    // ExampleListerExpansion allows custom methods to be added to
    // ExampleLister.
    type ExampleListerExpansion interface{}
    
    // ExampleNamespaceListerExpansion allows custom methods to be added to
    // ExampleNamespaceLister.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 08 09:52:48 UTC 2018
    - 895 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal.go

    	}
    
    	if s.Schema == nil && !s.Allows {
    		return jsFalse, nil
    	}
    	return jsTrue, nil
    }
    
    func (s *JSONSchemaPropsOrBool) UnmarshalJSON(data []byte) error {
    	var nw JSONSchemaPropsOrBool
    	switch {
    	case len(data) == 0:
    	case data[0] == '{':
    		var sch JSONSchemaProps
    		if err := json.Unmarshal(data, &sch); err != nil {
    			return err
    		}
    		nw.Allows = true
    		nw.Schema = &sch
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 13 21:12:46 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    		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)
    		}
    	})
    
    	t.Run("toString semantics", func(t *testing.T) {
    		t.Parallel()
    
    		b := make([]byte, size)
    		if _, err := rand.Read(b); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  8. src/net/tcpsock_test.go

    		t.Fatal(err)
    	}
    	defer server.Close()
    
    	var buf [128]byte
    	allocs := testing.AllocsPerRun(1000, func() {
    		_, err := server.Write(buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = io.ReadFull(client, buf[:])
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs > 0 {
    		t.Fatalf("got %v; want 0", allocs)
    	}
    
    	var bufwrt [128]byte
    	ch := make(chan bool)
    	defer close(ch)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  9. internal/ioutil/read_file.go

    package ioutil
    
    import (
    	"io"
    	"io/fs"
    	"os"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    var (
    	// OpenFileDirectIO allows overriding default function.
    	OpenFileDirectIO = disk.OpenFileDirectIO
    	// OsOpen allows overriding default function.
    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go

    )
    
    // Convert_Slice_string_To_v1beta1_IncludeObjectPolicy allows converting a URL query parameter value
    func Convert_Slice_string_To_v1beta1_IncludeObjectPolicy(in *[]string, out *IncludeObjectPolicy, s conversion.Scope) error {
    	if len(*in) > 0 {
    		*out = IncludeObjectPolicy((*in)[0])
    	}
    	return nil
    }
    
    // Convert_v1beta1_PartialObjectMetadataList_To_v1_PartialObjectMetadataList allows converting PartialObjectMetadataList between versions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 07 15:19:00 UTC 2020
    - 1.8K bytes
    - Viewed (0)
Back to top