Changeset

11506:9a3ebdd65f9c

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
author Kim Alvefur <zash@zash.se>
date Tue, 06 Apr 2021 23:23:28 +0200
parents 11505:61d38c4b749d
children 11514:11186af62c87
files core/statsmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/statsmanager.lua	Tue Apr 06 13:27:18 2021 +0200
+++ b/core/statsmanager.lua	Tue Apr 06 23:23:28 2021 +0200
@@ -77,6 +77,7 @@
 			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 @@
 						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