- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 3,510 for measure (0.27 sec)
-
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go
return d2 } // DurationTracker is a simple interface for tracking functions duration, // it is safe for concurrent use by multiple goroutines. type DurationTracker interface { // Track measures time spent in the given function f and // aggregates measured duration using aggregateFunction. // if Track is invoked with f from multiple goroutines concurrently, // then f must be safe to be invoked concurrently by multiple goroutines. Track(f func())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 22:15:37 UTC 2024 - 11.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
if (contentType != null) { sink.writeUtf8("Content-Type: ") .writeUtf8(contentType.toString()) .write(CRLF) } // We can't measure the body's size without the sizes of its components. val contentLength = body.contentLength() if (contentLength == -1L && countBytes) { byteCountBuffer!!.clear() return -1L }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.9K bytes - Viewed (0)