aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-04-06 23:23:28 +0200
committerKim Alvefur <zash@zash.se>2021-04-06 23:23:28 +0200
commit490980289f3c3c709bd08c7fa85ba13df3cd74dc (patch)
tree3b2c4efaa24b2f5b17a5e7b1ccde1026683e1048 /core
parent8c81d37532b4a4d685acb476fc8e376fa06c8192 (diff)
downloadprosody-490980289f3c3c709bd08c7fa85ba13df3cd74dc.tar.gz
prosody-490980289f3c3c709bd08c7fa85ba13df3cd74dc.zip
core.statsmanager: Cover util.statistics work in processing measurement
Zash> Btw, this conditional and loop, shouldn't it be covered by the timing measurement? Zash> Isn't that where all the util.statistics work is done? MattJ> Yeah, it should Zash> ("the", but there's two ... which oneā€½) MattJ> Yeah... not sure :) MattJ> Processing I guess
Diffstat (limited to 'core')
-rw-r--r--core/statsmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index 2297c959..1f958194 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -77,6 +77,7 @@ if stats then
mark_collection_done();
if stats.get_stats then
+ local mark_processing_done = mark_processing_start();
changed_stats, stats_extra = {}, {};
for stat_name, getter in pairs(stats.get_stats()) do
-- luacheck: ignore 211/type
@@ -90,7 +91,6 @@ if stats then
stats_extra[stat_name] = extra;
end
end
- local mark_processing_done = mark_processing_start();
fire_event("stats-updated", { stats = latest_stats, changed_stats = changed_stats, stats_extra = stats_extra });
mark_processing_done();
end