Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,073 for measure (0.25 sec)

  1. src/internal/coverage/decodemeta/decodefile.go

    	if r.hdr.Version > coverage.MetaFileVersion {
    		return fmt.Errorf("meta-data file withn unknown version %d (expected %d)", r.hdr.Version, coverage.MetaFileVersion)
    	}
    
    	// Read package offsets for good measure
    	r.pkgOffsets = make([]uint64, r.hdr.Entries)
    	for i := uint64(0); i < r.hdr.Entries; i++ {
    		if r.pkgOffsets[i], err = r.rdUint64(); err != nil {
    			return err
    		}
    		if r.pkgOffsets[i] > r.hdr.TotalLength {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 14 22:30:23 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/runtime/histogram.go

    	counts [timeHistNumBuckets * timeHistNumSubBuckets]atomic.Uint64
    
    	// underflow counts all the times we got a negative duration
    	// sample. Because of how time works on some platforms, it's
    	// possible to measure negative durations. We could ignore them,
    	// but we record them anyway because it's better to have some
    	// signal that it's happening than just missing samples.
    	underflow atomic.Uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

    ) : EventListener() {
      val eventSequence: Deque<CallEvent> = ConcurrentLinkedDeque()
    
      private val forbiddenLocks = mutableListOf<Any>()
    
      /** The timestamp of the last taken event, used to measure elapsed time between events. */
      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/LittleEndianByteArray.java

       * @param offset the offset into the array at which to start
       * @return the value found in the array in the form of a long
       */
      static int load32(byte[] source, int offset) {
        // TODO(user): Measure the benefit of delegating this to LittleEndianBytes also.
        return (source[offset] & 0xFF)
            | ((source[offset + 1] & 0xFF) << 8)
            | ((source[offset + 2] & 0xFF) << 16)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.performance.measure
    
    import spock.lang.Specification
    
    class AmountTest extends Specification {
    
        def "toString() retains original measurement"() {
            expect:
            Amount.valueOf(value, units).toString() == str
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup_test.go

    	activeAt, activeNow, err := target.Wait(func(count int) (RateLimiter, context.Context, context.CancelFunc) {
    		defer close(waitingCh)
    		// no deadline in context, Wait will wait forever, we want to measure
    		// how long it takes for the requests to drain.
    		return rate.NewLimiter(rate.Limit(n/int(grace.Seconds())), 1), context.Background(), func() {}
    	})
    	took := time.Since(now)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 21 14:08:00 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

       * @param offset the offset into the array at which to start
       * @return the value found in the array in the form of a long
       */
      static int load32(byte[] source, int offset) {
        // TODO(user): Measure the benefit of delegating this to LittleEndianBytes also.
        return (source[offset] & 0xFF)
            | ((source[offset + 1] & 0xFF) << 8)
            | ((source[offset + 2] & 0xFF) << 16)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. pkg/monitoring/monitoring_test.go

    	mt.Assert(testDistribution.Name(), map[string]string{"name": "foo"}, monitortest.Buckets(7))
    }
    
    func TestRecordHook(t *testing.T) {
    	mt := monitortest.New(t)
    
    	// testRecordHook will record value for hookSum measure when testSum is recorded
    	rh := &testRecordHook{}
    	monitoring.RegisterRecordHook(testSum.Name(), rh)
    
    	testSum.With(name.Value("foo"), kind.Value("bart")).Increment()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. src/go/doc/testdata/benchmark.go

    	if !b.timerOn {
    		b.start = time.Now()
    		b.timerOn = true
    	}
    }
    
    // StopTimer stops timing a test. This can be used to pause the timer
    // while performing complex initialization that you don't
    // want to measure.
    func (b *B) StopTimer() {
    	if b.timerOn {
    		b.duration += time.Since(b.start)
    		b.timerOn = false
    	}
    }
    
    // ResetTimer sets the elapsed benchmark time to zero.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  10. cmd/erasure-coding.go

    	"github.com/minio/minio/internal/logger"
    )
    
    // Erasure - erasure encoding details.
    type Erasure struct {
    	encoder                  func() reedsolomon.Encoder
    	dataBlocks, parityBlocks int
    	blockSize                int64
    }
    
    // NewErasure creates a new ErasureStorage.
    func NewErasure(ctx context.Context, dataBlocks, parityBlocks int, blockSize int64) (e Erasure, err error) {
    	// Check the parameters for sanity now.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top