- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 3,510 for measure (0.36 sec)
-
pkg/quota/v1/evaluator/core/pods.go
podEvaluator := &podEvaluator{listFuncByNamespace: listFuncByNamespace, clock: clock} return podEvaluator } // podEvaluator knows how to measure usage of pods. type podEvaluator struct { // knows how to list pods listFuncByNamespace generic.ListFuncByNamespace // used to track time clock clock.Clock }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 05 00:02:47 UTC 2023 - 17.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost.go
// improvement here would be to somehow get a count the number of expressions in the regex or // how many states are in the regex state machine and use that to measure regex cost). // For now, we're making a guess that each expression in a regex is typically at least 4 chars // in length. regexCost := uint64(math.Ceil(float64(actualSize(args[1])) * common.RegexStringLengthCostFactor))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 20.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/signature.go
} } else if len(tparams) < len(recvTParams) { // Reporting an error here is a stop-gap measure to avoid crashes in the // compiler when a type parameter/argument cannot be inferred later. It // may lead to follow-on errors (see issues go.dev/issue/51339, go.dev/issue/51343). // TODO(gri) find a better solution got := measure(len(tparams), "type parameter")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:33:05 UTC 2024 - 12.6K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/persistent_volume_claims.go
if strings.HasSuffix(string(item), byStorageClass) { result = append(result, item) break } } } return result } // Usage knows how to measure usage associated with item. func (p *pvcEvaluator) Usage(item runtime.Object) (corev1.ResourceList, error) { result := corev1.ResourceList{} pvc, err := toExternalPersistentVolumeClaimOrError(item) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 23:36:24 UTC 2022 - 9.2K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/metrics/metrics.go
attachDetachController = "attach_detach_controller" ) var ( inUseVolumeMetricDesc = metrics.NewDesc( metrics.BuildFQName("", "storage_count", "attachable_volumes_in_use"), "Measure number of volumes in use", []string{"node", "volume_plugin"}, nil, metrics.ALPHA, "") totalVolumesMetricDesc = metrics.NewDesc( metrics.BuildFQName("", "attachdetach_controller", "total_volumes"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 10 06:30:05 UTC 2023 - 7.5K bytes - Viewed (0) -
src/net/netip/slow_test.go
var zeros = []string{"0", "0", "0", "0", "0", "0", "0", "0"} // parseIPSlow is like ParseIP, but aims for readability above // speed. It's the reference implementation for correctness checking // and against which we measure optimized parsers. // // parseIPSlow understands the following forms of IP addresses: // - Regular IPv4: 1.2.3.4 // - IPv4 with many leading zeros: 0000001.0000002.0000003.0000004
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 19:54:31 UTC 2024 - 5.8K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/AbstractInstrumentationProcessor.java
.map(it -> (ExecutableElement) it) // Ensure that the elements have a stable order, as the annotation processing engine does not guarantee that for type elements. // The order in which the executable elements are listed should be the order in which they appear in the code but // we take an extra measure of care here and ensure the ordering between all elements.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 10.3K bytes - Viewed (0) -
pkg/kubelet/cm/helpers_linux.go
// Input parameters and resulting value is number of microseconds. func MilliCPUToQuota(milliCPU int64, period int64) (quota int64) { // CFS quota is measured in two values: // - cfs_period_us=100ms (the amount of time to measure usage across given by period) // - cfs_quota=20ms (the amount of cpu time allowed to be used across a period) // so in the above example, you are limited to 20% of a single CPU
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 11:52:28 UTC 2023 - 9.8K bytes - Viewed (0) -
src/cmd/compile/internal/base/timings.go
type timestamp struct { time time.Time label string start bool } type event struct { size int64 // count or amount of data processed (allocations, data size, lines, funcs, ...) unit string // unit of size measure (count, MB, lines, funcs, ...) } func (t *Timings) append(labels []string, start bool) { t.list = append(t.list, timestamp{time.Now(), strings.Join(labels, ":"), start}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.8K bytes - Viewed (0) -
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)