Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for KindFloat64Histogram (0.34 sec)

  1. src/runtime/metrics/value.go

    	// KindUint64 indicates that the type of the Value is a uint64.
    	KindUint64
    
    	// KindFloat64 indicates that the type of the Value is a float64.
    	KindFloat64
    
    	// KindFloat64Histogram indicates that the type of the Value is a *Float64Histogram.
    	KindFloat64Histogram
    )
    
    // Value represents a metric value returned by the runtime.
    type Value struct {
    	kind    ValueKind
    	scalar  uint64         // contains scalar values for scalar Kinds.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/runtime/metrics/description.go

    			"Bucket counts increase monotonically. " +
    			"Note that this does not include tiny objects as defined by " +
    			"/gc/heap/tiny/allocs:objects, only tiny blocks.",
    		Kind:       KindFloat64Histogram,
    		Cumulative: true,
    	},
    	{
    		Name:        "/gc/heap/allocs:bytes",
    		Description: "Cumulative sum of memory allocated to the heap by the application.",
    		Kind:        KindUint64,
    		Cumulative:  true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  3. src/runtime/metrics/example_test.go

    		// Handle each sample.
    		switch value.Kind() {
    		case metrics.KindUint64:
    			fmt.Printf("%s: %d\n", name, value.Uint64())
    		case metrics.KindFloat64:
    			fmt.Printf("%s: %f\n", name, value.Float64())
    		case metrics.KindFloat64Histogram:
    			// The histogram may be quite large, so let's just pull out
    			// a crude estimate for the median for the sake of this example.
    			fmt.Printf("%s: %f\n", name, medianBucket(value.Float64Histogram()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 08 16:09:01 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. src/runtime/metrics_test.go

    				}
    			case metrics.KindFloat64:
    				new := vNew.Float64()
    				old := vOld.Float64()
    				if new < old {
    					t.Errorf("%s decreased: %f < %f", name, new, old)
    				}
    			case metrics.KindFloat64Histogram:
    				new := sum(vNew.Float64Histogram().Counts)
    				old := sum(vOld.Float64Histogram().Counts)
    				if new < old {
    					t.Errorf("%s counts decreased: %d < %d", name, new, old)
    				}
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg runtime/metrics, const KindBad ValueKind
    pkg runtime/metrics, const KindFloat64 = 2
    pkg runtime/metrics, const KindFloat64 ValueKind
    pkg runtime/metrics, const KindFloat64Histogram = 3
    pkg runtime/metrics, const KindFloat64Histogram ValueKind
    pkg runtime/metrics, const KindUint64 = 1
    pkg runtime/metrics, const KindUint64 ValueKind
    pkg runtime/metrics, func All() []Description
    pkg runtime/metrics, func Read([]Sample)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Float64Histogram", Type, 16},
    		{"Float64Histogram.Buckets", Field, 16},
    		{"Float64Histogram.Counts", Field, 16},
    		{"KindBad", Const, 16},
    		{"KindFloat64", Const, 16},
    		{"KindFloat64Histogram", Const, 16},
    		{"KindUint64", Const, 16},
    		{"Read", Func, 16},
    		{"Sample", Type, 16},
    		{"Sample.Name", Field, 16},
    		{"Sample.Value", Field, 16},
    		{"Value", Type, 16},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top