Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 547 for _counters (0.13 sec)

  1. src/cmd/covdata/metamerge.go

    	// FIXME: in theory either A) len(val.Counters) is zero, or B)
    	// the two lengths are equal. Assert if not? Of course, we could
    	// see odd stuff if there is source file skew.
    	if *verbflag > 4 {
    		fmt.Printf("visit pk=%d fid=%d len(counters)=%d\n", data.PkgIdx, data.FuncIdx, len(data.Counters))
    	}
    	if len(val.Counters) < len(data.Counters) {
    		t := val.Counters
    		val.Counters = mm.AllocateCounters(len(data.Counters))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:17:47 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/cmd/covdata/dump.go

    		return
    	}
    	key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx}
    	val, found := d.mm[key]
    
    	dbgtrace(5, "ctr visit pk=%d fid=%d found=%v len(val.ctrs)=%d len(data.ctrs)=%d", data.PkgIdx, data.FuncIdx, found, len(val.Counters), len(data.Counters))
    
    	if len(val.Counters) < len(data.Counters) {
    		t := val.Counters
    		val.Counters = d.AllocateCounters(len(data.Counters))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go

    // golang.org/x/telemetry/counter.Open.
    func Open(telemetryDir string) {
    	openedMu.Lock()
    	defer openedMu.Unlock()
    	if opened {
    		panic("Open was called more than once")
    	}
    	telemetry.Default = telemetry.NewDir(telemetryDir)
    
    	counter.Open()
    	opened = true
    }
    
    // ReadCounter reads the given counter.
    func ReadCounter(c *counter.Counter) (count uint64, _ error) {
    	return ic.Read(c)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/testing/cover.go

    // 'go tool cover'.
    func Coverage() float64 {
    	if goexperiment.CoverageRedesign {
    		return coverage2()
    	}
    	var n, d int64
    	for _, counters := range cover.Counters {
    		for i := range counters {
    			if atomic.LoadUint32(&counters[i]) > 0 {
    				n++
    			}
    			d++
    		}
    	}
    	if d == 0 {
    		return 0
    	}
    	return float64(n) / float64(d)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:37:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/cmd/covdata/subtractintersect.go

    		if s.mode == subtractMode {
    			for i := 0; i < len(data.Counters); i++ {
    				if data.Counters[i] != 0 {
    					val.Counters[i] = 0
    				}
    			}
    		} else if s.mode == intersectMode {
    			s.imm[key] = struct{}{}
    			for i := 0; i < len(data.Counters); i++ {
    				if data.Counters[i] == 0 {
    					val.Counters[i] = 0
    				}
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 12:50:46 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      /**
       * Multiple threads using same array of counters successfully update a number of times equal to
       * total count
       */
      public void testCountingInMultipleThreads() throws InterruptedException {
        final AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          aa.set(i, (double) COUNTDOWN);
        }
        Counter c1 = new Counter(aa);
        Counter c2 = new Counter(aa);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. pkg/kubelet/winstats/perfcounter_nodestats.go

    		klog.ErrorS(err, "Unable to get cpu perf counter data")
    		return
    	}
    
    	memWorkingSetValue, err := memWorkingSetCounter.getData()
    	if err != nil {
    		klog.ErrorS(err, "Unable to get memWorkingSet perf counter data")
    		return
    	}
    
    	memCommittedBytesValue, err := memCommittedBytesCounter.getData()
    	if err != nil {
    		klog.ErrorS(err, "Unable to get memCommittedBytes perf counter data")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    // func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    TEXT ·xorKeyStreamVX(SB), NOSPLIT, $0
    	MOVD $·constants<>(SB), R1
    	MOVD dst+0(FP), R2         // R2=&dst[0]
    	LMG  src+24(FP), R3, R4    // R3=&src[0] R4=len(src)
    	MOVD key+48(FP), R5        // R5=key
    	MOVD nonce+56(FP), R6      // R6=nonce
    	MOVD counter+64(FP), R7    // R7=counter
    
    	// load BSWAP and J0
    	VLM (R1), BSWAP, J0
    
    	// setup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. src/internal/coverage/defs.go

    // CounterFlavor describes how function and counters are
    // stored/represented in the counter section of the file.
    type CounterFlavor uint8
    
    const (
    	// "Raw" representation: all values (pkg ID, func ID, num counters,
    	// and counters themselves) are stored as uint32's.
    	CtrRaw CounterFlavor = iota + 1
    
    	// "ULeb" representation: all values (pkg ID, func ID, num counters,
    	// and counters themselves) are stored with ULEB128 encoding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    			continue
    		}
    		prog := findProgReport(x.Meta, report)
    		for k, v := range x.Count {
    			if counter.IsStackCounter(k) {
    				// stack
    				prog.Stacks[k] += int64(v)
    			} else {
    				// counter
    				prog.Counters[k] += int64(v)
    			}
    			succeeded = true
    			fok = true
    		}
    		if !fok {
    			u.logger.Printf("no counters found in %s", f)
    		}
    	}
    	if !succeeded {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top