File: go1_21_runtime_metrics.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (30 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Code generated by 'yaegi extract runtime/metrics'. DO NOT EDIT.

//go:build go1.21 && !go1.22
// +build go1.21,!go1.22

package stdlib

import (
	"reflect"
	"runtime/metrics"
)

func init() {
	Symbols["runtime/metrics/metrics"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"All":                  reflect.ValueOf(metrics.All),
		"KindBad":              reflect.ValueOf(metrics.KindBad),
		"KindFloat64":          reflect.ValueOf(metrics.KindFloat64),
		"KindFloat64Histogram": reflect.ValueOf(metrics.KindFloat64Histogram),
		"KindUint64":           reflect.ValueOf(metrics.KindUint64),
		"Read":                 reflect.ValueOf(metrics.Read),

		// type definitions
		"Description":      reflect.ValueOf((*metrics.Description)(nil)),
		"Float64Histogram": reflect.ValueOf((*metrics.Float64Histogram)(nil)),
		"Sample":           reflect.ValueOf((*metrics.Sample)(nil)),
		"Value":            reflect.ValueOf((*metrics.Value)(nil)),
		"ValueKind":        reflect.ValueOf((*metrics.ValueKind)(nil)),
	}
}