Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for KindFloat64 (0.2 sec)

  1. src/runtime/metrics/description.go

    			"This metric is an overestimate, and not directly comparable to " +
    			"system CPU time measurements. Compare only with other /cpu/classes " +
    			"metrics.",
    		Kind:       KindFloat64,
    		Cumulative: true,
    	},
    	{
    		Name: "/cpu/classes/gc/mark/dedicated:cpu-seconds",
    		Description: "Estimated total CPU time spent performing GC tasks on " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/runtime/metrics/value.go

    	// KindBad indicates that the Value has no type and should not be used.
    	KindBad ValueKind = iota
    
    	// 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/log/slog/value_access_benchmark_test.go

    		for i := 0; i < b.N; i++ {
    			for _, v := range vs {
    				switch v.Kind() {
    				case KindString:
    					s = v.String()
    				case KindInt64:
    					ii = v.Int64()
    				case KindUint64:
    					u = v.Uint64()
    				case KindFloat64:
    					f = v.Float64()
    				case KindBool:
    					bb = v.Bool()
    				case KindDuration:
    					d = v.Duration()
    				case KindAny:
    					a = v.Any()
    				default:
    					panic("bad kind")
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/log/slog/value.go

    type Kind int
    
    // The following list is sorted alphabetically, but it's also important that
    // KindAny is 0 so that a zero Value represents nil.
    
    const (
    	KindAny Kind = iota
    	KindBool
    	KindDuration
    	KindFloat64
    	KindInt64
    	KindString
    	KindTime
    	KindUint64
    	KindGroup
    	KindLogValuer
    )
    
    var kindStrings = []string{
    	"Any",
    	"Bool",
    	"Duration",
    	"Float64",
    	"Int64",
    	"String",
    	"Time",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/log/slog/internal/benchmarks/handlers.go

    	case slog.KindString:
    		buf.WriteString(v.String())
    	case slog.KindInt64:
    		*buf = strconv.AppendInt(*buf, v.Int64(), 10)
    	case slog.KindUint64:
    		*buf = strconv.AppendUint(*buf, v.Uint64(), 10)
    	case slog.KindFloat64:
    		*buf = strconv.AppendFloat(*buf, v.Float64(), 'g', -1, 64)
    	case slog.KindBool:
    		*buf = strconv.AppendBool(*buf, v.Bool())
    	case slog.KindDuration:
    		*buf = strconv.AppendInt(*buf, v.Duration().Nanoseconds(), 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/runtime/metrics/example_test.go

    		name, value := sample.Name, sample.Value
    
    		// 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 08 16:09:01 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  7. src/log/slog/json_handler.go

    	case KindString:
    		s.appendString(v.str())
    	case KindInt64:
    		*s.buf = strconv.AppendInt(*s.buf, v.Int64(), 10)
    	case KindUint64:
    		*s.buf = strconv.AppendUint(*s.buf, v.Uint64(), 10)
    	case KindFloat64:
    		// json.Marshal is funny about floats; it doesn't
    		// always match strconv.AppendFloat. So just call it.
    		// That's expensive, but floats are rare.
    		if err := appendJSONMarshal(s.buf, v.Float64()); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. api/go1.21.txt

    pkg log/slog, const KindBool = 1 #56345
    pkg log/slog, const KindBool Kind #56345
    pkg log/slog, const KindDuration = 2 #56345
    pkg log/slog, const KindDuration Kind #56345
    pkg log/slog, const KindFloat64 = 3 #56345
    pkg log/slog, const KindFloat64 Kind #56345
    pkg log/slog, const KindGroup = 8 #56345
    pkg log/slog, const KindGroup Kind #56345
    pkg log/slog, const KindInt64 = 4 #56345
    pkg log/slog, const KindInt64 Kind #56345
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  9. src/runtime/metrics_test.go

    			switch vNew.Kind() {
    			case metrics.KindUint64:
    				new := vNew.Uint64()
    				old := vOld.Uint64()
    				if new < old {
    					t.Errorf("%s decreased: %d < %d", name, new, old)
    				}
    			case metrics.KindFloat64:
    				new := vNew.Float64()
    				old := vOld.Float64()
    				if new < old {
    					t.Errorf("%s decreased: %f < %f", name, new, old)
    				}
    			case metrics.KindFloat64Histogram:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Int64Value", Func, 21},
    		{"IntValue", Func, 21},
    		{"JSONHandler", Type, 21},
    		{"Kind", Type, 21},
    		{"KindAny", Const, 21},
    		{"KindBool", Const, 21},
    		{"KindDuration", Const, 21},
    		{"KindFloat64", Const, 21},
    		{"KindGroup", Const, 21},
    		{"KindInt64", Const, 21},
    		{"KindLogValuer", Const, 21},
    		{"KindString", Const, 21},
    		{"KindTime", Const, 21},
    		{"KindUint64", Const, 21},
    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