const runtime.timeHistNumSubBuckets
10 uses
runtime (current package)
histogram.go#L55: timeHistNumSubBuckets = 1 << timeHistSubBucketBits
histogram.go#L57: timeHistTotalBuckets = timeHistNumSuperBuckets*timeHistNumSubBuckets + 1
histogram.go#L73: counts [timeHistNumSuperBuckets * timeHistNumSubBuckets]uint64
histogram.go#L94: if duration >= timeHistNumSubBuckets {
histogram.go#L98: if superBucket*timeHistNumSubBuckets >= uint(len(h.counts)) {
histogram.go#L103: subBucket = timeHistNumSubBuckets - 1
histogram.go#L109: subBucket = uint((duration >> (superBucket - 1)) % timeHistNumSubBuckets)
histogram.go#L114: atomic.Xadd64(&h.counts[superBucket*timeHistNumSubBuckets+subBucket], 1)
histogram.go#L159: for j := 0; j < timeHistNumSubBuckets; j++ {
histogram.go#L167: b[i*timeHistNumSubBuckets+j+1] = float64(subBucketMin) / 1e9
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |