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