From 490980289f3c3c709bd08c7fa85ba13df3cd74dc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 6 Apr 2021 23:23:28 +0200 Subject: core.statsmanager: Cover util.statistics work in processing measurement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/statsmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3