- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for sampleCount (0.29 sec)
-
pkg/monitoring/monitortest/test.go
} return nil } } func Distribution(count uint64, sum float64) func(any) error { return func(f any) error { d := f.(*dto.Histogram) if *d.SampleCount != count { return fmt.Errorf("want %v samples, got %v", count, *d.SampleCount) } if *d.SampleSum != sum { return fmt.Errorf("want %v sum, got %v", count, *d.SampleSum) } return nil } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 13 16:04:48 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/metrics_test.go
totalOther := &m[3] sampleCount := func(s *metrics.Sample) uint64 { h := s.Value.Float64Histogram() var n uint64 for _, c := range h.Counts { n += c } return n } // Read baseline. metrics.Read(m) baselineStartGC := sampleCount(stoppingGC) baselineStartOther := sampleCount(stoppingOther) baselineTotalGC := sampleCount(totalGC)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go
metric := mf.GetMetric()[0] hist := metric.GetHistogram() if hist == nil { return 0, errors.New("dto.Metric has nil Histogram") } if hist.SampleCount == nil { return 0, errors.New("dto.Histogram has nil SampleCount") } return int64(*hist.SampleCount), nil } return 0, errMetricNotFound } func BenchmarkTimingRatioHistogram(b *testing.B) { b.StopTimer() now := time.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 13 16:03:06 UTC 2022 - 8.7K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
m := metrics.PluginExecutionDuration.WithLabelValues(wantPlugin, wantExtensionPoint, wantStatus.String()) count, err := testutil.GetHistogramMetricCount(m) if err != nil { t.Errorf("Failed to get %s sampleCount, err: %v", metrics.PluginExecutionDuration.Name, err) } if count == 0 { t.Error("Expect at least 1 sample") } value, err := testutil.GetHistogramMetricValue(m) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
}]; let arguments = (ins TF_Int32Tensor:$indices_or_row_splits, TF_Int32Tensor:$values, TF_Float32Tensor:$weights, ConfinedAttr<I64Attr, [IntMinValue<1>]>:$sample_count, StrAttr:$combiner ); let results = (outs TF_Int32Tensor:$row_ids, TF_Int32Tensor:$col_ids, TF_Float32Tensor:$gains ); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (1)