Files
moxa/stdlib/runtime_debug.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

27 lines
870 B
Go

package stdlib
// Generated by 'goexports runtime/debug'. Do not edit!
import (
"reflect"
"runtime/debug"
)
func init() {
Value["runtime/debug"] = map[string]reflect.Value{
"FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory),
"PrintStack": reflect.ValueOf(debug.PrintStack),
"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["runtime/debug"] = map[string]reflect.Type{
"GCStats": reflect.TypeOf((*debug.GCStats)(nil)).Elem(),
}
}