Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 779 for allDocs (0.22 sec)

  1. pkg/registry/core/service/storage/alloc.go

    	if len(el) > 0 {
    		return errors.NewInvalid(api.Kind("Service"), service.Name, el)
    	}
    
    	// Special-case: headless + selectorless.  This has to happen before other
    	// checks because it explicitly allows combinations of inputs that would
    	// otherwise be errors.
    	if service.Spec.ClusterIP == api.ClusterIPNone && len(service.Spec.Selector) == 0 {
    		// If IPFamilies was not set by the user, start with the default
    		// family.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  2. src/runtime/metrics_test.go

    		t.Error("allocs-by-size and frees-by-size counts don't match in length")
    	} else {
    		for i := range objects.alloc.Buckets {
    			ba := objects.alloc.Buckets[i]
    			bf := objects.free.Buckets[i]
    			if ba != bf {
    				t.Errorf("bucket %d is different for alloc and free hists: %f != %f", i, ba, bf)
    			}
    		}
    		if !t.Failed() {
    			var gotAlloc, gotFree uint64
    			want := objects.total
    			for i := range objects.alloc.Counts {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/compile.go

    			var stats string
    			if logMemStats {
    				var mEnd runtime.MemStats
    				runtime.ReadMemStats(&mEnd)
    				nBytes := mEnd.TotalAlloc - mStart.TotalAlloc
    				nAllocs := mEnd.Mallocs - mStart.Mallocs
    				stats = fmt.Sprintf("[%d ns %d allocs %d bytes]", time, nAllocs, nBytes)
    			} else {
    				stats = fmt.Sprintf("[%d ns]", time)
    			}
    
    			if f.Log() {
    				f.Logf("  pass %s end %s\n", p.name, stats)
    				printFunc(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/runtime/mcache.go

    var emptymspan mspan
    
    func allocmcache() *mcache {
    	var c *mcache
    	systemstack(func() {
    		lock(&mheap_.lock)
    		c = (*mcache)(mheap_.cachealloc.alloc())
    		c.flushGen.Store(mheap_.sweepgen)
    		unlock(&mheap_.lock)
    	})
    	for i := range c.alloc {
    		c.alloc[i] = &emptymspan
    	}
    	c.nextSample = nextSample()
    	return c
    }
    
    // freemcache releases resources associated with this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. src/runtime/mstats.go

    		// Size is the maximum byte size of an object in this
    		// size class.
    		Size uint32
    
    		// Mallocs is the cumulative count of heap objects
    		// allocated in this size class. The cumulative bytes
    		// of allocation is Size*Mallocs. The number of live
    		// objects in this size class is Mallocs - Frees.
    		Mallocs uint64
    
    		// Frees is the cumulative count of heap objects freed
    		// in this size class.
    		Frees uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/gc.go

    	// Alternate between whether the chunk will be held live or will be
    	// condemned to GC to create holes in the heap.
    	saved := make([][]byte, allocs/2+1)
    	condemned := make([][]byte, allocs/2)
    	for i := 0; i < allocs; i++ {
    		b := make([]byte, allocChunk)
    		if i%2 == 0 {
    			saved = append(saved, b)
    		} else {
    			condemned = append(condemned, b)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof.go

    	// Pprof will ignore, but useful for people
    	s := memStats
    	fmt.Fprintf(w, "\n# runtime.MemStats\n")
    	fmt.Fprintf(w, "# Alloc = %d\n", s.Alloc)
    	fmt.Fprintf(w, "# TotalAlloc = %d\n", s.TotalAlloc)
    	fmt.Fprintf(w, "# Sys = %d\n", s.Sys)
    	fmt.Fprintf(w, "# Lookups = %d\n", s.Lookups)
    	fmt.Fprintf(w, "# Mallocs = %d\n", s.Mallocs)
    	fmt.Fprintf(w, "# Frees = %d\n", s.Frees)
    
    	fmt.Fprintf(w, "# HeapAlloc = %d\n", s.HeapAlloc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. src/testing/benchmark.go

    		return 0
    	}
    	return (float64(r.Bytes) * float64(r.N) / 1e6) / r.T.Seconds()
    }
    
    // AllocsPerOp returns the "allocs/op" metric,
    // which is calculated as r.MemAllocs / r.N.
    func (r BenchmarkResult) AllocsPerOp() int64 {
    	if v, ok := r.Extra["allocs/op"]; ok {
    		return int64(v)
    	}
    	if r.N <= 0 {
    		return 0
    	}
    	return int64(r.MemAllocs) / int64(r.N)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    			bySize[i].Frees += m.smallFreeCount[i]
    			bySize[i].Mallocs += m.smallFreeCount[i]
    			smallFree += m.smallFreeCount[i] * uint64(class_to_size[i])
    		}
    		slow.Frees += m.tinyAllocCount + m.largeFreeCount
    		slow.Mallocs += slow.Frees
    
    		slow.TotalAlloc = slow.Alloc + m.largeFree + smallFree
    
    		for i := range slow.BySize {
    			slow.BySize[i].Mallocs = bySize[i].Mallocs
    			slow.BySize[i].Frees = bySize[i].Frees
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

    // set of transformations for TFLite IR that lower memory usage by redoing
    // operations with small inputs and large outputs instead of keeping the result
    // in memory. This class allows us to compactly and efficiently represent the
    // (idealized) memory profile of a TFLite graph and simulate the effect of
    // re-inserting operations on that memory profile.
    
    #include <algorithm>
    #include <cinttypes>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
Back to top