- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for timeHistogramMetricsBuckets (0.27 sec)
-
src/runtime/histogram.go
func float64NegInf() float64 { inf := uint64(fNegInf) return *(*float64)(unsafe.Pointer(&inf)) } // timeHistogramMetricsBuckets generates a slice of boundaries for // the timeHistogram. These boundaries are represented in seconds, // not nanoseconds like the timeHistogram represents durations. func timeHistogramMetricsBuckets() []float64 { b := make([]float64, timeHistTotalBuckets+1) // Underflow bucket. b[0] = float64NegInf()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.3K bytes - Viewed (0) -
src/runtime/histogram_test.go
} if c != 2 { t.Errorf("overflow bucket has count that is not 2: %d", c) } dummyTimeHistogram = TimeHistogram{} } func TestTimeHistogramMetricsBuckets(t *testing.T) { buckets := TimeHistogramMetricsBuckets() nonInfBucketsLen := TimeHistNumSubBuckets * TimeHistNumBuckets expBucketsLen := nonInfBucketsLen + 3 // Count -Inf, the edge for the overflow bucket, and +Inf. if len(buckets) != expBucketsLen {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 16:32:01 UTC 2022 - 3.5K bytes - Viewed (0) -
src/runtime/export_test.go
} return t.counts[i].Load(), true } func (th *TimeHistogram) Record(duration int64) { (*timeHistogram)(th).record(duration) } var TimeHistogramMetricsBuckets = timeHistogramMetricsBuckets func SetIntArgRegs(a int) int { lock(&finlock) old := intArgRegs if a >= 0 { intArgRegs = a } unlock(&finlock) return old }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/runtime/metrics.go
// (nowhere near 2^48 even) so this will give us exact // boundaries. sizeClassBuckets[i] = float64(class_to_size[i] + 1) } sizeClassBuckets = append(sizeClassBuckets, float64Inf()) timeHistBuckets = timeHistogramMetricsBuckets() metrics = map[string]metricData{ "/cgo/go-to-c-calls:calls": { compute: func(_ *statAggregate, out *metricValue) { out.kind = metricKindUint64 out.scalar = uint64(NumCgoCall()) }, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 26K bytes - Viewed (0)