Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for urlmaker (0.19 sec)

  1. src/internal/trace/traceviewer/histogram.go

    func (h *TimeHistogram) BucketMin(bucket int) time.Duration {
    	return time.Duration(math.Exp(float64(bucket) * logDiv))
    }
    
    // ToHTML renders the histogram as HTML.
    func (h *TimeHistogram) ToHTML(urlmaker func(min, max time.Duration) string) template.HTML {
    	if h == nil || h.Count == 0 {
    		return template.HTML("")
    	}
    
    	const barWidth = 400
    
    	maxCount := 0
    	for _, count := range h.Buckets {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top