Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 802 for mkcounter (0.71 sec)

  1. pkg/kubelet/winstats/perfcounters.go

    	}
    
    	ret = win_pdh.PdhCollectQueryData(queryHandle)
    	if ret != win_pdh.ERROR_SUCCESS {
    		return nil, fmt.Errorf("unable to collect data from counter. Error code is %x", ret)
    	}
    
    	return &perfCounterImpl{
    		queryHandle:   queryHandle,
    		counterHandle: counterHandle,
    	}, nil
    }
    
    // getData is used for getting data without * in counter name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 19:13:24 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. pkg/proxy/util/nfacct/nfacct.go

    	Add(name string) error
    	// Get retrieves the nfacct counter with the specified name, returning an error if it doesn't exist.
    	Get(name string) (*Counter, error)
    	// List retrieves all nfacct counters.
    	List() ([]*Counter, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    	}
    	if mounter.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    		mounter.Iface = mounter.Portals[0] + ":" + mounter.VolName
    	}
    	return attacher.manager.MakeGlobalPDName(*mounter.iscsiDisk), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/scripts/process-log.groovy

    int uniqueOpCount = 0
    int uniqueExcludeCount = 0
    
    Map<String, Counter> opCounters = [:].withDefault { new Counter(uniqueOpCount++) }
    Map<String, Counter> excludeCounters = [:].withDefault { new Counter(uniqueExcludeCount++) }
    
    class Counter {
        final int id
        Counter(int id) { this.id = id}
    
        int counter = -1
    
        void inc() {
            counter++
        }
    
        String getFormattedId() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                        def counter = parameters.counter
                        println "Transforming \${input.name} to \${output.name}"
                        output.withWriter { out ->
                            out.println String.valueOf(counter.getCount())
                            for (int i = 0; i < 4; i++) {
                                out.println String.valueOf(counter.increment())
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. src/crypto/aes/gcm_s390x.go

    	// with a four-byte big-endian counter starting at one, is used
    	// directly as the starting counter. For other nonce sizes, the counter
    	// is computed by passing it through the GHASH function.
    	var counter gcmCount
    	if len(nonce) == gcmStandardNonceSize {
    		copy(counter[:], nonce)
    		counter[gcmBlockSize-1] = 1
    	} else {
    		var hash [16]byte
    		g.paddedGHASH(&hash, nonce)
    		lens := gcmLengths(0, uint64(len(nonce))*8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. src/sync/waitgroup.go

    	noCopy noCopy
    
    	state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
    	sema  uint32
    }
    
    // Add adds delta, which may be negative, to the [WaitGroup] counter.
    // If the counter becomes zero, all goroutines blocked on [WaitGroup.Wait] are released.
    // If the counter goes negative, Add panics.
    //
    // Note that calls with a positive delta that occur when the counter is zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy

        }
    
        def "read runs after queued writes are processed"() {
            given:
            def counter = 0
            start(cacheAccessWorker)
    
            when:
            cacheAccessWorker.enqueue { ++counter }
            cacheAccessWorker.enqueue { ++counter }
            def result = cacheAccessWorker.read { counter }
    
            then:
            result == 2
    
            cleanup:
            cacheAccessWorker?.stop()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    }
    
    // avoid parsing count files multiple times
    type parsedCache struct {
    	mu sync.Mutex
    	m  map[string]*counter.File
    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    			},
    			status: true,
    			want: `
    				# HELP authenticated_user_requests [ALPHA] Counter of authenticated requests broken out by username.
    				# TYPE authenticated_user_requests counter
    				authenticated_user_requests{username="admin"} 1
            # HELP authentication_attempts [ALPHA] Counter of authenticated attempts.
            # TYPE authentication_attempts counter
            authentication_attempts{result="success"} 1
    				`,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top