Skip to content

Commit

Permalink
add sao count
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Sep 22, 2020
1 parent 34b31d7 commit b662e6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ engine_metrics["ServerEnv: Run SAO::step() [ms]"] = monitoring.gauge(
"server active objects step average"
)

engine_metrics["ActiveObjectMgr: SAO count [#]"] = monitoring.gauge(
"engine_sao_count",
"server active objects count average"
)

local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer + dtime
Expand Down

0 comments on commit b662e6f

Please sign in to comment.