- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,574 for pcount (0.53 sec)
-
src/runtime/pprof/protomem.go
// profile is 1-exp(-S/R). func scaleHeapSample(count, size, rate int64) (int64, int64) { if count == 0 || size == 0 { return 0, 0 } if rate <= 1 { // if rate==1 all samples were collected so no adjustment is needed. // if rate<1 treat as unknown and skip scaling. return count, size } avgSize := float64(size) / float64(count) scale := 1 / (1 - math.Exp(-avgSize/float64(rate)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 2.9K bytes - Viewed (0) -
tests/associations_has_many_test.go
CheckPet(t, pets[0], *user.Pets[0]) if count := DB.Model(&user).Where("name = ?", user.Pets[1].Name).Association("Pets").Count(); count != 1 { t.Fatalf("should only find one pets, but got %v", count) } if count := DB.Model(&user).Where("name = ?", "not found").Association("Pets").Count(); count != 0 { t.Fatalf("should only find no pet with invalid conditions, but got %v", count) } // Count AssertAssociationCount(t, user, "Pets", 2, "")
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
src/math/big/ratconv.go
// on the actual floating-point value. // determine binary or decimal exponent contribution of radix point var exp2, exp5 int64 if fcount < 0 { // The mantissa has a radix point ddd.dddd; and // -fcount is the number of digits to the right // of '.'. Adjust relevant exponent accordingly. d := int64(fcount) switch base { case 10: exp5 = d
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 22:16:34 UTC 2023 - 12.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go
} for plName, hr, nCount := cts.popHeldRequest(); hr != nil; plName, hr, nCount = cts.popHeldRequest() { desired := desiredPLNames.Has(plName) || mandPLs[plName] != nil if testDebugLogs { t.Logf("Releasing held request %#+v, desired=%v, plName=%s, count:=%d", hr.rd, desired, plName, nCount) } close(hr.finishCh) } cts.requestWG.Wait()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 18.4K bytes - Viewed (0) -
pkg/scheduler/internal/heap/heap_test.go
if *metricRecorder != 4 { t.Errorf("expected count to be 4 but got %d", *metricRecorder) } if err := h.Delete(mkHeapObj("bar", 1)); err != nil { t.Fatal(err) } if *metricRecorder != 3 { t.Errorf("expected count to be 3 but got %d", *metricRecorder) } if _, err := h.Pop(); err != nil { t.Fatal(err) } if *metricRecorder != 2 { t.Errorf("expected count to be 2 but got %d", *metricRecorder) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 7.9K bytes - Viewed (0) -
src/internal/diff/diff.go
// Special case: empty file shows up as 0,0 not 1,0. if count.x > 0 { chunk.x++ } if count.y > 0 { chunk.y++ } fmt.Fprintf(&out, "@@ -%d,%d +%d,%d @@\n", chunk.x, count.x, chunk.y, count.y) for _, s := range ctext { out.WriteString(s) } count.x = 0 count.y = 0 ctext = ctext[:0] } // If we reached EOF, we're done.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 14:13:04 UTC 2023 - 7.5K bytes - Viewed (0) -
src/runtime/metrics/description.go
// "byte*cpu-seconds", and "bytes/second/second". // // For histograms, multiple units may apply. For instance, the units of the buckets and // the count. By convention, for histograms, the units of the count are always "samples" // with the type of sample evident by the metric's name, while the unit in the name // specifies the buckets' unit. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 17:59:12 UTC 2023 - 19.6K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
// loop-i goroutine should be present in the profile too. counts := make(map[string]int) for _, s := range p.Sample { label := s.Label[t.Name()+"-loop-i"] if len(label) > 0 { counts[label[0]]++ } } for j, max := 0, len(counts)-1; j <= max; j++ { n := counts[fmt.Sprint(j)] if n == 1 || (n == 2 && j == max) { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
func fairAlloc(demands []float64, capacity float64) []float64 { count := len(demands) indices := make([]int, count) for i := 0; i < count; i++ { indices[i] = i } sort.Slice(indices, func(i, j int) bool { return demands[indices[i]] < demands[indices[j]] }) alloc := make([]float64, count) var next int var prevAlloc float64 for ; next < count; next++ { // `capacity` is how much remains assuming that
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0) -
src/runtime/metrics_test.go
for i := range objects.alloc.Counts { if objects.alloc.Counts[i] < objects.free.Counts[i] { t.Errorf("found more allocs than frees in object dist bucket %d", i) continue } gotAlloc += objects.alloc.Counts[i] gotFree += objects.free.Counts[i] } if got := gotAlloc - gotFree; got != want { t.Errorf("object distribution counts don't match count of live objects: got %d, want %d", got, want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0)