forked from traefik/yaegi
/
go1_17_runtime_debug.go
33 lines (28 loc) · 1.08 KB
/
go1_17_runtime_debug.go
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
31
32
33
// Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT.
//go:build go1.17
// +build go1.17
package stdlib
import (
"reflect"
"runtime/debug"
)
func init() {
Symbols["runtime/debug/debug"] = map[string]reflect.Value{
// function, constant and variable definitions
"FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory),
"PrintStack": reflect.ValueOf(debug.PrintStack),
"ReadBuildInfo": reflect.ValueOf(debug.ReadBuildInfo),
"ReadGCStats": reflect.ValueOf(debug.ReadGCStats),
"SetGCPercent": reflect.ValueOf(debug.SetGCPercent),
"SetMaxStack": reflect.ValueOf(debug.SetMaxStack),
"SetMaxThreads": reflect.ValueOf(debug.SetMaxThreads),
"SetPanicOnFault": reflect.ValueOf(debug.SetPanicOnFault),
"SetTraceback": reflect.ValueOf(debug.SetTraceback),
"Stack": reflect.ValueOf(debug.Stack),
"WriteHeapDump": reflect.ValueOf(debug.WriteHeapDump),
// type definitions
"BuildInfo": reflect.ValueOf((*debug.BuildInfo)(nil)),
"GCStats": reflect.ValueOf((*debug.GCStats)(nil)),
"Module": reflect.ValueOf((*debug.Module)(nil)),
}
}