github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/devnotes.md (about) 1 To find out what functions get inline in a package, from the package run 2 `go build -gcflags=-m=2 . 2>&1` 3 4 e.g. check `triggerReturn` 5 6 ```sh 7 $ cd runtime 8 $ go build -gcflags=-m=2 . 2>&1 | grep triggerReturn 9 ./debughooks.go:61:6: can inline (*DebugHooks).triggerReturn with cost 73 as: method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) } 10 ./gocont.go:94:21: inlining call to (*DebugHooks).triggerReturn method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) } 11 ./luacont.go:352:26: inlining call to (*DebugHooks).triggerReturn method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) } 12 ./debughooks.go:61:47: from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1 13 ./debughooks.go:61:36: from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1 14 <autogenerated>:1: from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1 15 ```