Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 578 for counter2 (0.24 sec)

  1. pilot/pkg/serviceregistry/aggregate/controller_test.go

    	for _, r := range registries {
    		counter := atomic.NewInt32(0)
    		clusterID := r.Cluster()
    		if clusterID == "cluster1" {
    			counter = registry1Counter
    		}
    		if clusterID == "cluster2" {
    			counter = registry2Counter
    		}
    		ctrl.AppendServiceHandlerForCluster(clusterID, func(_, curr *model.Service, event model.Event) {
    			counter.Add(1)
    		})
    		ctrl.AddRegistry(r)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. src/internal/fuzz/counters_supported.go

    import (
    	"unsafe"
    )
    
    // coverage returns a []byte containing unique 8-bit counters for each edge of
    // the instrumented source code. This coverage data will only be generated if
    // `-d=libfuzzer` is set at build time. This can be used to understand the code
    // coverage of a test execution.
    func coverage() []byte {
    	addr := unsafe.Pointer(&_counters)
    	size := uintptr(unsafe.Pointer(&_ecounters)) - uintptr(addr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 21:16:39 UTC 2022
    - 710 bytes
    - Viewed (0)
  3. src/cmd/cover/cover.go

    func setCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s = 1", counter)
    }
    
    // incCounterStmt returns the expression: __count[23]++.
    func incCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s++", counter)
    }
    
    // atomicCounterStmt returns the expression: atomic.AddUint32(&__count[23], 1)
    func atomicCounterStmt(f *File, counter string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/cmd/internal/cov/covcmd/cmddefs.go

    	// eliminates redundant counters).
    	Strategy string
    
    	// Prefix assigned to the names of counter variables generated
    	// during instrumentation by cmd/cover.
    	CounterPrefix string
    
    	// Name chosen for the package ID variable generated during
    	// instrumentation.
    	PkgIdVar string
    
    	// Counter mode (e.g. set/count/atomic)
    	CounterMode string
    
    	// Counter granularity (perblock or perfunc).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/README.md

    change in breaking ways as the telemetry integration is refined.
    
    ## Notable Packages
    
    - The [x/telemetry/counter](https://pkg.go.dev/golang.org/x/telemetry/counter)
      package provides a library for instrumenting programs with counters and stack
      reports.
    - The [x/telemetry/upload](https://pkg.go.dev/golang.org/x/telemetry/upload)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/go/script_test.go

    			// not a counter file
    			continue
    		}
    		counters, _, err := countertest.ReadFile(filepath.Join(localDir, dirent.Name()))
    		if err != nil {
    			t.Fatalf("reading counter file: %v", err)
    		}
    		for k, v := range counters {
    			totals[k] += v
    		}
    	}
    
    	return totals
    }
    
    func checkCounters(t *testing.T, telemetryDir string) {
    	counters := readCounters(t, telemetryDir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_test.go

    	t.Run("gcm unsafe", func(t *testing.T) {
    		testGCMNonce(t, newGCMTransformerWithUniqueKeyUnsafeTest, 0, func(i int, nonce []byte) {
    			counter := binary.LittleEndian.Uint64(nonce)
    			if uint64(i+1) != counter { // add one because the counter starts at 1, not 0
    				t.Errorf("counter nonce is invalid: want %d, got %d", i+1, counter)
    			}
    		})
    	})
    
    	t.Run("gcm extended nonce", func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  8. pkg/kubelet/winstats/network_stats.go

    	if err != nil {
    		klog.ErrorS(err, "Unable to get packetsReceivedPerSecond perf counter data")
    		return nil, err
    	}
    
    	packetsSentPerSecondData, err := n.packetsSentPerSecondCounter.getDataList()
    	if err != nil {
    		klog.ErrorS(err, "Unable to get packetsSentPerSecond perf counter data")
    		return nil, err
    	}
    
    	bytesReceivedPerSecondData, err := n.bytesReceivedPerSecondCounter.getDataList()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/internal/fuzz/counters_unsupported.go

    // In theory, we shouldn't need this file at all: if the binary was built
    // without coverage, then _counters and _ecounters should have the same address.
    // However, this caused an init failure on aix/ppc64, so it's disabled here.
    
    // coverage returns a []byte containing unique 8-bit counters for each edge of
    // the instrumented source code. This coverage data will only be generated if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 17:10:57 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. 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)
Back to top