GetLuaMemUsage

GetLuaMemUsage

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10344
Joined: 24 Jan 2006, 21:12

GetLuaMemUsage

Post by PicassoCT »

Is this currently in spring 104.0?
Does it work?
Has anyone written any memory leak debug gadgetry ?
User avatar
Silentwings
Moderator
Posts: 3669
Joined: 25 Oct 2008, 00:23

Re: GetLuaMemUsage

Post by Silentwings »

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10344
Joined: 24 Jan 2006, 21:12

Re: GetLuaMemUsage

Post by PicassoCT »

Thanks Silentwings- it works.. but i still have no idea where all the memory seems to go with code_man.
I copied the situation as close as possible.
Everythings seems fine on my machine.
Image
Attachments
screen00225.jpg
(442.93 KiB) Not downloaded yet
User avatar
Silentwings
Moderator
Posts: 3669
Joined: 25 Oct 2008, 00:23

Re: GetLuaMemUsage

Post by Silentwings »

It looks like its not working properly there - all your mem allocs claim 0kB/s which I wouldn't believe.

If you let me know which game version/engine you're using then I'll look into it.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10344
Joined: 24 Jan 2006, 21:12

Re: GetLuaMemUsage

Post by PicassoCT »

Also the kb/s values are always zero.
User avatar
Floris
Balanced Annihilation Developer
Posts: 608
Joined: 04 Jan 2011, 20:00

Re: GetLuaMemUsage

Post by Floris »

the function was added in one of the 104 maintenance builds, so seeing the last game you hosted was just regular 104, no wonder

i coded in fallback in the ba profilers for the older engines, and there it will return 0
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10344
Joined: 24 Jan 2006, 21:12

Re: GetLuaMemUsage

Post by PicassoCT »

Ah, thank you.

I hope code_man retests my game with this gadget.
Post Reply

Return to “Lua Scripts”