From eeef07d05a7e53de469f19a23fe1e69f569fc924 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 5 Dec 2019 10:14:07 +0100 Subject: Add profiling instructions for advprofiler --- advtrains/nodedb.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains/nodedb.lua') diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua index 37dc3f7..e3f5022 100644 --- a/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua @@ -123,6 +123,7 @@ function ndb.get_node(pos) return n end function ndb.get_node_raw(pos) + advtrains.profiler:count("ndb_get_node") local cid=ndbget(pos.x, pos.y, pos.z) if cid then local nodeid = ndb_nodeids[u14b(cid)] @@ -135,6 +136,7 @@ end function ndb.swap_node(pos, node, no_inval) + advtrains.profiler:count("ndb_swap_node") if minetest.get_node_or_nil(pos) then minetest.swap_node(pos, node) end -- cgit v1.2.3