Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 895 for pcount (0.17 sec)

  1. src/internal/trace/testdata/cmd/gotraceeventstats/main.go

    	fmt.Fprintf(w, "Event\tBytes\t%%\tCount\t%%\n")
    	fmt.Fprintf(w, "-\t-\t-\t-\t-\n")
    	for i := range stats {
    		stat := &stats[i]
    		name := ""
    		if int(stat.typ) >= len(specs) {
    			name = fmt.Sprintf("<unknown (%d)>", stat.typ)
    		} else {
    			name = specs[stat.typ].Name
    		}
    		bytesPct := float64(stat.bytes) / float64(cr.bytesRead) * 100
    		countPct := float64(stat.count) / float64(eventsRead) * 100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/runtime/pprof/protomem.go

    // profile is 1-exp(-S/R).
    func scaleHeapSample(count, size, rate int64) (int64, int64) {
    	if count == 0 || size == 0 {
    		return 0, 0
    	}
    
    	if rate <= 1 {
    		// if rate==1 all samples were collected so no adjustment is needed.
    		// if rate<1 treat as unknown and skip scaling.
    		return count, size
    	}
    
    	avgSize := float64(size) / float64(count)
    	scale := 1 / (1 - math.Exp(-avgSize/float64(rate)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/heap/heap_test.go

    	if *metricRecorder != 4 {
    		t.Errorf("expected count to be 4 but got %d", *metricRecorder)
    	}
    	if err := h.Delete(mkHeapObj("bar", 1)); err != nil {
    		t.Fatal(err)
    	}
    	if *metricRecorder != 3 {
    		t.Errorf("expected count to be 3 but got %d", *metricRecorder)
    	}
    	if _, err := h.Pop(); err != nil {
    		t.Fatal(err)
    	}
    	if *metricRecorder != 2 {
    		t.Errorf("expected count to be 2 but got %d", *metricRecorder)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/internal/diff/diff.go

    			// Special case: empty file shows up as 0,0 not 1,0.
    			if count.x > 0 {
    				chunk.x++
    			}
    			if count.y > 0 {
    				chunk.y++
    			}
    			fmt.Fprintf(&out, "@@ -%d,%d +%d,%d @@\n", chunk.x, count.x, chunk.y, count.y)
    			for _, s := range ctext {
    				out.WriteString(s)
    			}
    			count.x = 0
    			count.y = 0
    			ctext = ctext[:0]
    		}
    
    		// If we reached EOF, we're done.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/perfcounter_nodestats.go

    // cpu count for all processor groups of the windows node.
    // more notes for this issue:
    // same issue in moby: https://github.com/moby/moby/issues/38935#issuecomment-744638345
    // solution in hcsshim: https://github.com/microsoft/hcsshim/blob/master/internal/processorinfo/processor_count.go
    func ProcessorCount() int {
    	if amount := getActiveProcessorCount(allProcessorGroups); amount != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. pkg/kube/inject/testdata/inject/auth.non-default-service-account.yaml.injected

    John Howard <******@****.***> 1709052916 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. pkg/kube/inject/testdata/inject/hello-mount-mtls-certs.yaml.injected

    John Howard <******@****.***> 1709052916 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. src/net/http/export_test.go

    	c, _ := net.Pipe()
    	key := connectMethodKey{"", scheme, addr, false}
    
    	if t.MaxConnsPerHost > 0 {
    		// Transport is tracking conns-per-host.
    		// Increment connection count to account
    		// for new persistConn created below.
    		t.connsPerHostMu.Lock()
    		if t.connsPerHost == nil {
    			t.connsPerHost = make(map[connectMethodKey]int)
    		}
    		t.connsPerHost[key]++
    		t.connsPerHostMu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/fakegenerator.go

    	"k8s.io/kubernetes/pkg/volume/util/hostutil"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    // fakeOGCounter is a simple OperationGenerator which counts number of times a function
    // has been caled
    type fakeOGCounter struct {
    	// calledFuncs stores name and count of functions
    	calledFuncs map[string]int
    	opFunc      func() volumetypes.OperationContext
    }
    
    var _ OperationGenerator = &fakeOGCounter{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/device_compilation_profiler.cc

      if (!reached_compile_threshold) {
        VLOG(2) << "Not compiling cluster " << function.name()
                << " because it has not reached compile threshold; threshold is "
                << *compile_threshold << " execution count "
                << current_request_count << ".";
      }
      return reached_compile_threshold;
    }
    
    void DeviceCompilationProfiler::IncrementOngoingAsyncCompilations() {
      mutex_lock lock(mu_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top