Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 578 for counter2 (0.4 sec)

  1. pkg/kubelet/winstats/perfcounters_test.go

    				}
    				return
    			}
    
    			// There are some counters that we can't expect to see any non-zero values, like the
    			// networking-related counters.
    			if tc.skipCheck {
    				return
    			}
    
    			// Wait until we get a non-zero perf counter data.
    			if pollErr := wait.Poll(100*time.Millisecond, 5*perfCounterUpdatePeriod, func() (bool, error) {
    				data, err := counter.getData()
    				if err != nil {
    					return false, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/internal/coverage/cfile/apis.go

    	//       if alwaysTrue() {
    	//         XYZ()                // counter update here
    	//       }
    	//     }
    	//
    	// In the instrumented version of ABC, the prolog of the function
    	// will contain a series of stores to the initial portion of the
    	// counter array to write number-of-counters, pkgid, funcid. Later
    	// in the function there is also a store to increment a counter
    	// for the block containing the call to XYZ(). If the CPU is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/internal/coverage/encodecounter/encode.go

    			towr = len(buf)
    		} else {
    			panic("internal error: bad counter flavor")
    		}
    		if sz, err := ws.Write(buf); err != nil {
    			return err
    		} else if sz != towr {
    			return fmt.Errorf("writing counters: short write")
    		}
    		return nil
    	}
    
    	// Write out entries for each live function.
    	emitter := func(pkid uint32, funcid uint32, counters []uint32) error {
    		cfw.csh.FcnEntries++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    			}
    			wroteNext = true
    		} else {
    			c.next.Store(next)
    		}
    		if f.counters.CompareAndSwap(head, c) {
    			debugPrintf("registered %s %p\n", c.Name(), f.counters.Load())
    			return
    		}
    		debugPrintf("register %s cas2 failed %p %p\n", c.Name(), f.counters.Load(), head)
    	}
    }
    
    // invalidateCounters marks as invalid all the pointers
    // held by f's counters and then refreshes them.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. 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)
  8. pkg/proxy/util/nfacct/nfacct_linux.go

    		if err != nil {
    			return nil, handleError(err)
    		}
    		counters = append(counters, counter)
    	}
    	return counters, nil
    }
    
    var ErrObjectNotFound = errors.New("object not found")
    var ErrObjectAlreadyExists = errors.New("object already exists")
    var ErrNameExceedsMaxLength = fmt.Errorf("object name exceeds the maximum allowed length of %d characters", MaxLength)
    var ErrEmptyName = errors.New("object name cannot be empty")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/tasks/rules/JacocoLimit.java

        String getCounter();
    
        /**
         * Sets the counter that applies to the limit.
         *
         * @param counter Counter
         */
        void setCounter(String counter);
    
        /**
         * The value that applies to the limit as defined by
         * <a href="http://www.eclemma.org/jacoco/trunk/doc/api/org/jacoco/core/analysis/ICounter.CounterValue.html">org.jacoco.core.analysis.ICounter.CounterValue</a>.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. src/internal/coverage/test/counter_test.go

    	for _, fn := range v.funcs {
    		if err := f(fn.PkgIdx, fn.FuncIdx, fn.Counters); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func mkfunc(p uint32, f uint32, c []uint32) decodecounter.FuncPayload {
    	return decodecounter.FuncPayload{
    		PkgIdx:   p,
    		FuncIdx:  f,
    		Counters: c,
    	}
    }
    
    func TestCounterDataWriterReader(t *testing.T) {
    	flavors := []coverage.CounterFlavor{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:34 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top