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: 10207
Joined: 24 Jan 2006, 21:12

GetLuaMemUsage

Post by PicassoCT » 09 Oct 2018, 12:06

Is this currently in spring 104.0?
Does it work?
Has anyone written any memory leak debug gadgetry ?
0 x

User avatar
Silentwings
Moderator
Posts: 3582
Joined: 25 Oct 2008, 00:23

Re: GetLuaMemUsage

Post by Silentwings » 09 Oct 2018, 12:08

0 x

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

Re: GetLuaMemUsage

Post by PicassoCT » 09 Oct 2018, 15:36

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
0 x

User avatar
Silentwings
Moderator
Posts: 3582
Joined: 25 Oct 2008, 00:23

Re: GetLuaMemUsage

Post by Silentwings » 09 Oct 2018, 16:33

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.
0 x

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

Re: GetLuaMemUsage

Post by PicassoCT » 09 Oct 2018, 23:48

Also the kb/s values are always zero.
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: GetLuaMemUsage

Post by Floris » 10 Oct 2018, 00:21

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
1 x

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

Re: GetLuaMemUsage

Post by PicassoCT » 10 Oct 2018, 04:03

Ah, thank you.

I hope code_man retests my game with this gadget.
0 x

Post Reply

Return to “Lua Scripts”