Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cpuList (0.14 sec)

  1. src/go/doc/testdata/testing.go

    }
    
    func parseCpuList() {
    	if len(*cpuListStr) == 0 {
    		cpuList = append(cpuList, runtime.GOMAXPROCS(-1))
    	} else {
    		for _, val := range strings.Split(*cpuListStr, ",") {
    			cpu, err := strconv.Atoi(val)
    			if err != nil || cpu <= 0 {
    				fmt.Fprintf(os.Stderr, "testing: invalid value %q for -test.cpu", val)
    				os.Exit(1)
    			}
    			cpuList = append(cpuList, cpu)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  2. src/testing/benchmark.go

    	// If no flag was specified, don't run benchmarks.
    	if len(*matchBenchmarks) == 0 {
    		return true
    	}
    	// Collect matching benchmarks and determine longest name.
    	maxprocs := 1
    	for _, procs := range cpuList {
    		if procs > maxprocs {
    			maxprocs = procs
    		}
    	}
    	ctx := &benchContext{
    		match:  newMatcher(matchString, *matchBenchmarks, "-test.bench", *skip),
    		extLen: len(benchmarkName("", maxprocs)),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/testing/fuzz.go

    	}
    	m := newMatcher(deps.MatchString, *match, "-test.run", *skip)
    	var mFuzz *matcher
    	if *matchFuzz != "" {
    		mFuzz = newMatcher(deps.MatchString, *matchFuzz, "-test.fuzz", *skip)
    	}
    
    	for _, procs := range cpuList {
    		runtime.GOMAXPROCS(procs)
    		for i := uint(0); i < *count; i++ {
    			if shouldFailFast() {
    				break
    			}
    
    			tctx := newTestContext(*parallel, m)
    			tctx.deadline = deadline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cadvisor_stats_provider.go

    	if !info.Spec.HasCpu || !info.Spec.HasMemory {
    		return false
    	}
    	cstat, found := latestContainerStats(info)
    	if !found {
    		return false
    	}
    	if cstat.CpuInst == nil {
    		return false
    	}
    	return cstat.CpuInst.Usage.Total != 0 && cstat.Memory.RSS != 0
    }
    
    // isContainerTerminated returns true if the specified container meet one of the following conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/provider_test.go

    	cinfo := getTestContainerInfo(seed, podName, podNamespace, containerName)
    	cinfo.Stats[0].Memory.RSS = 0
    	cinfo.Stats[0].CpuInst.Usage.Total = 0
    	cinfo.Stats[0].Network = &cadvisorapiv2.NetworkStats{
    		Interfaces: []cadvisorapiv1.InterfaceStats{{
    			Name:     "eth0",
    			RxBytes:  0,
    			RxErrors: 0,
    			TxBytes:  0,
    			TxErrors: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/helper.go

    		Time:                 metav1.NewTime(cstat.Timestamp),
    		UsageNanoCores:       uint64Ptr(0),
    		UsageCoreNanoSeconds: uint64Ptr(0),
    	}
    	if info.Spec.HasCpu {
    		if cstat.CpuInst != nil {
    			cpuStats.UsageNanoCores = &cstat.CpuInst.Usage.Total
    		}
    		if cstat.Cpu != nil {
    			cpuStats.UsageCoreNanoSeconds = &cstat.Cpu.Usage.Total
    		}
    	}
    	if info.Spec.HasMemory && cstat.Memory != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 23:40:02 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top