Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for COUNTER (0.27 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/counter/counter.go

    // each time the corresponding event is observed.
    //
    // Although it is possible to use New to create
    // a Counter each time a particular event needs to be recorded,
    // that usage fails to amortize the construction cost over
    // multiple calls to Add, so it is more expensive and not recommended.
    type Counter = counter.Counter
    
    // A StackCounter is the in-memory knowledge about a stack counter.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 18:02:34 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    	return &Counter{name: name, file: &defaultFile}
    }
    
    // Inc adds 1 to the counter.
    func (c *Counter) Inc() {
    	c.Add(1)
    }
    
    // Add adds n to the counter. n cannot be negative, as counts cannot decrease.
    func (c *Counter) Add(n int64) {
    	debugPrintf("Add %q += %d", c.name, n)
    
    	if n < 0 {
    		panic("Counter.Add negative")
    	}
    	if n == 0 {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/cmd/internal/telemetry/telemetry.go

    	})
    }
    
    // Inc increments the counter with the given name.
    func Inc(name string) {
    	counter.Inc(name)
    }
    
    // NewCounter returns a counter with the given name.
    func NewCounter(name string) *counter.Counter {
    	return counter.New(name)
    }
    
    // NewStackCounter returns a new stack counter with the given name and depth.
    func NewStackCounter(name string, depth int) *counter.StackCounter {
    	return counter.NewStack(name, depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. pkg/proxy/util/nfacct/nfacct_linux_test.go

    				// validate response
    				if tc.err != nil {
    					assert.Nil(t, counter)
    					assert.ErrorContains(t, err, tc.err.Error())
    				} else {
    					assert.NotNil(t, counter)
    					assert.NoError(t, err)
    					assert.Equal(t, tc.counter.Name, counter.Name)
    					assert.Equal(t, tc.counter.Packets, counter.Packets)
    					assert.Equal(t, tc.counter.Bytes, counter.Bytes)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/counter/doc.go

    //
    // When counter files expire they are turned into reports by the upload
    // package. The first time any counter file is created for a user, a random day
    // of the week is selected on which counter files will expire. For the first
    // week, that day is more than 7 days (but not more than two weeks) in the
    // future. After that the counter files expire weekly on the same day of the
    // week.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. pkg/kubelet/winstats/perfcounters_test.go

    		"Net Adapter Packets Received/sec Query": {
    			counter:   packetsReceivedPerSecondQuery,
    			skipCheck: true,
    		},
    		"Net Adapter Packets Sent/sec Query": {
    			counter:   packetsSentPerSecondQuery,
    			skipCheck: true,
    		},
    		"Net Adapter Bytes Received/sec Query": {
    			counter:   bytesReceivedPerSecondQuery,
    			skipCheck: true,
    		},
    		"Net Adapter Bytes Sent/sec Query": {
    			counter:   bytesSentPerSecondQuery,
    			skipCheck: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    	defer c.mu.Unlock()
    
    	// Existing counter?
    	var ctr *Counter
    	for _, s := range c.stacks {
    		if eq(s.pcs, pcs) {
    			if s.counter != nil {
    				ctr = s.counter
    				break
    			}
    		}
    	}
    
    	if ctr == nil {
    		// Create new counter.
    		ctr = &Counter{
    			name: EncodeStack(pcs, c.name),
    			file: c.file,
    		}
    		c.stacks = append(c.stacks, stack{pcs: pcs, counter: ctr})
    	}
    
    	ctr.Inc()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. docs/metrics/v3.md

    | `minio_api_requests_rejected_auth_total`       | `counter` | Total number of requests rejected for auth failure      | `type,pool_index,server`         |
    | `minio_api_requests_rejected_header_total`     | `counter` | Total number of requests rejected for invalid header    | `type,pool_index,server`         |
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 40.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top