label abms for profiling purposes

see https://github.com/t4im/profiler/#labeling
This commit is contained in:
Tim 2015-08-20 14:52:01 +02:00
parent d7c56bfcdb
commit 3dc94b67cc
3 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,7 @@ homedecor.register("telephone", {
minetest.register_abm({ minetest.register_abm({
nodenames = "homedecor:telephone", nodenames = "homedecor:telephone",
label = "sfx",
interval = 30, interval = 30,
chance = 15, chance = 15,
action = function(pos, node) action = function(pos, node)

View File

@ -176,6 +176,7 @@ function homedecor.register_furnace(name, furnacedef)
minetest.register_abm({ minetest.register_abm({
nodenames = {name, name_active, name.."_locked", name_active.."_locked"}, nodenames = {name, name_active, name.."_locked", name_active.."_locked"},
label = "furnaces",
interval = 1.0, interval = 1.0,
chance = 1, chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)

View File

@ -127,6 +127,7 @@ local fdir_to_steampos = {
minetest.register_abm({ minetest.register_abm({
nodenames = "homedecor:coffee_maker", nodenames = "homedecor:coffee_maker",
label = "sfx",
interval = 2, interval = 2,
chance = 1, chance = 1,
action = function(pos, node) action = function(pos, node)