From 7f9b5ae8f08c3f9224d7438c70fdce04765222ae Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Tue, 15 Oct 2024 05:23:44 +0200 Subject: [PATCH] differenciate between mainThrottledRefresh and styleThrottledRefresh --- core/modules/startup/render.js | 4 ++-- core/modules/startup/windows.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/startup/render.js b/core/modules/startup/render.js index 7e4a15cff..4b3561b0e 100644 --- a/core/modules/startup/render.js +++ b/core/modules/startup/render.js @@ -98,8 +98,8 @@ exports.startup = function() { } styleDeferredChanges = Object.create(null); } - var mainThrottledRefresh = $tw.perf.report("throttledRefresh",refresh), - styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh); + var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",refresh), + styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh); $tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) { throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true); })); diff --git a/core/modules/startup/windows.js b/core/modules/startup/windows.js index fb5a0a790..9f0e9d6d5 100644 --- a/core/modules/startup/windows.js +++ b/core/modules/startup/windows.js @@ -125,8 +125,8 @@ exports.startup = function() { widgetNode.refresh(mainDeferredChanges); mainDeferredChanges = Object.create(null); }; - var mainThrottledRefresh = $tw.perf.report("throttledRefresh",mainRefresh), - styleThrottledRefresh = $tw.perf.report("throttledRefresh",styleRefresh); + var mainThrottledRefresh = $tw.perf.report("throttledMainRefresh",mainRefresh), + styleThrottledRefresh = $tw.perf.report("throttledStyleRefresh",styleRefresh); styleRefreshHandler = function(changes) { throttledRefreshFn(changes,styleDeferredChanges,styleTimerId,styleThrottledRefresh,styleRefresh,false,true); };