diff options
author | orwell96 <orwell@bleipb.de> | 2019-12-05 10:14:07 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-12-05 10:15:36 +0100 |
commit | eeef07d05a7e53de469f19a23fe1e69f569fc924 (patch) | |
tree | 6330ae717f337ec1a039004349d9c4c045ab632c /advtrains_luaautomation/active_common.lua | |
parent | 9c1d3565058799f21b6985c100ccf1abe045d3da (diff) | |
download | advtrains-eeef07d05a7e53de469f19a23fe1e69f569fc924.tar.gz advtrains-eeef07d05a7e53de469f19a23fe1e69f569fc924.tar.bz2 advtrains-eeef07d05a7e53de469f19a23fe1e69f569fc924.zip |
Add profiling instructions for advprofiler
Diffstat (limited to 'advtrains_luaautomation/active_common.lua')
-rw-r--r-- | advtrains_luaautomation/active_common.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua index c17c6e9..4337122 100644 --- a/advtrains_luaautomation/active_common.lua +++ b/advtrains_luaautomation/active_common.lua @@ -114,6 +114,8 @@ function ac.run_in_env(pos, evtdata, customfct_p) return false end + atlatc.profiler:enter("ac_run_in_env") + local customfct=customfct_p or {} -- add interrupt function customfct.interrupt=function(t, imesg) @@ -152,6 +154,7 @@ function ac.run_in_env(pos, evtdata, customfct_p) if meta then meta:set_string("formspec", ac.getform(pos, meta)) end + atlatc.profiler:leave("ac_run_in_env") end function ac.on_digiline_receive(pos, node, channel, msg) |