add timer info

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-04-23 12:49:41 +02:00
parent 21b34a6fa7
commit 40e550f1c3
23 changed files with 194 additions and 76 deletions
+4 -1
View File
@@ -17,6 +17,7 @@ function controlInputMode(inputMode, ...args) {
}
async function setupControlUI() {
const t0 = performance.now();
const tabs = ['input', 'output', 'preview'];
for (const tab of tabs) {
const btn = gradioApp().getElementById(`control-${tab}-button`);
@@ -46,5 +47,7 @@ async function setupControlUI() {
});
intersectionObserver.observe(el); // monitor visibility of tab
log('initControlUI');
const t1 = performance.now();
log('setupControlUI', Math.round(t1 - t0));
timer('setupControlUI', t1 - t0);
}