github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_runtime_debug.go (about) 1 // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT. 2 3 //go:build go1.17 4 // +build go1.17 5 6 package stdlib 7 8 import ( 9 "reflect" 10 "runtime/debug" 11 ) 12 13 func init() { 14 Symbols["runtime/debug/debug"] = map[string]reflect.Value{ 15 // function, constant and variable definitions 16 "FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory), 17 "PrintStack": reflect.ValueOf(debug.PrintStack), 18 "ReadBuildInfo": reflect.ValueOf(debug.ReadBuildInfo), 19 "ReadGCStats": reflect.ValueOf(debug.ReadGCStats), 20 "SetGCPercent": reflect.ValueOf(debug.SetGCPercent), 21 "SetMaxStack": reflect.ValueOf(debug.SetMaxStack), 22 "SetMaxThreads": reflect.ValueOf(debug.SetMaxThreads), 23 "SetPanicOnFault": reflect.ValueOf(debug.SetPanicOnFault), 24 "SetTraceback": reflect.ValueOf(debug.SetTraceback), 25 "Stack": reflect.ValueOf(debug.Stack), 26 "WriteHeapDump": reflect.ValueOf(debug.WriteHeapDump), 27 28 // type definitions 29 "BuildInfo": reflect.ValueOf((*debug.BuildInfo)(nil)), 30 "GCStats": reflect.ValueOf((*debug.GCStats)(nil)), 31 "Module": reflect.ValueOf((*debug.Module)(nil)), 32 } 33 }