owo, whatdis? A Lua Profiler? Yay!
Configurable in Mod Options, shows log entries when lua calls go over your configured nano-seconds. Beware, low values cause DebugLog-spam.
Just subscribe and enable the mod in the ingame manager,
/!\ Including FOLLOWING ZombieBuddy's installation at: /!\
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3619862853]https://steamcommunity.com/sharedfiles/filedetails/?id=3619862853[/url]
Go to your Zomboid/Logs folder, open the DebugLog.txt in there;
Examples to look for:
[23-04-26 03:16:38.561] WARN : Lua f:0 at Patch_Event.intercept > SLOW Lua event callback >20000ns errorMagnifier_events.lua function compareErrorCount:10 36340ns.
[23-04-26 03:16:40.041] WARN : Lua f:0 at Patch_Event.intercept > SLOW Lua event callback >20000ns HGTS_GodRays.lua function HGTS_Sunshine:27 21920ns.
[23-04-26 03:16:41.229] WARN : Lua f:0 at Patch_Event.intercept > SLOW Lua event callback >20000ns errorMagnifier_events.lua function compareErrorCount:10 28740ns.