Closed harrand closed 5 days ago
Describe the feature request Currently, adding profiling instrumentation in lua is a pain. Example:
local obj <close> = tz.profzone_obj:new() obj:set_text("Entity Update - " .. ent:get_name()) obj:set_name("Lua Entity Update")
Macros in lua are not a thing, and this should be way more compact. Ideally: TZ_PROFZONE("Entity Update" .. ent:get_name()) Which emits the above code in the executing lua.
TZ_PROFZONE("Entity Update" .. ent:get_name())
Describe the feature request Currently, adding profiling instrumentation in lua is a pain. Example:
Macros in lua are not a thing, and this should be way more compact. Ideally:
TZ_PROFZONE("Entity Update" .. ent:get_name())
Which emits the above code in the executing lua.