Replies: 2 comments 2 replies
-
I don't think that open source version provides such detalization.
Would be better to ask for some guidance in https://github.com/luau-lang/luau |
Beta Was this translation helpful? Give feedback.
1 reply
-
@khvzak is this not related to the heap-dump walking scripts, e.g. https://github.com/luau-lang/luau/blob/bb3956547affc1af7b7d196f96756895255dd05d/tools/heapgraph.py that rely on luaC_dump? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings!
I'm looking for any kind of hints/help with getting memory allocation data (ideally per table/function/thread/etc) from a lua/luau instance. Roblox have introduced this feature last year (announcement link). This is probably not the best place to ask this, but I haven't been able to find a better one.
I've managed to get some very general info (total memory used/freed, total allocations amount) via a custom allocator function. There also seems to be C api for retrieving total bytes per type (lua_setmemcat, lua_totalbytes). I'm totally stuck on how to proceed from here. How would one approach this?
If there's an open source implementation of something like this, please share it :) (the ones I've look at were quite bare-bones). Any help at all would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions