mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add missing js files
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -5,10 +5,12 @@ async function timer(name, elapsed) {
|
||||
}
|
||||
|
||||
async function logTimers() {
|
||||
allTimers.sort((a, b) => b[1] - a[1]);
|
||||
const filteredTimers = allTimers.filter((t) => t[1] > 50);
|
||||
debug('startupTimers', filteredTimers);
|
||||
// xhrPost(`${window.api}/log`, { debug: JSON.stringify(filteredTimers) });
|
||||
// allTimers.sort((a, b) => b[1] - a[1]);
|
||||
const filteredTimers = allTimers.filter((t) => t[1] > 100);
|
||||
const objTimers = {};
|
||||
for (const [name, elapsed] of filteredTimers) objTimers[name] = elapsed;
|
||||
debug('startupTimers', objTimers);
|
||||
// xhrPost(`${window.api}/log`, { debug: JSON.stringify(objTimers) });
|
||||
}
|
||||
|
||||
window.timer = timer;
|
||||
|
||||
Reference in New Issue
Block a user