fix(electron): isolate refresh performance correlation

This commit is contained in:
4gray committed 2026-07-26 22:37:52 +02:00
1 parent e3ce60a35e
commit f9e71a6d8d
25 files changed
+728 -402

No files matched your search

@@ -166,6 +166,7 @@ async function runIteration(
],
env: {
IPTVNATOR_DB_WORKER_BATCH_DELAY_MS: '0',
IPTVNATOR_PERF_CAPTURE: '1',
IPTVNATOR_PERF_WORKER_PROFILING: '1',
IPTVNATOR_TRACE_RENDERER_CONSOLE:
process.env['IPTVNATOR_TRACE_RENDERER_CONSOLE'] ?? '0',
@@ -224,3 +224,15 @@ test('the cancellation benchmark command is pinned to its Playwright test file',
'pnpm exec playwright test --config=playwright.performance.config.ts src/m3u-refresh-cancellation.performance.ts'
);
});
test('the cancellation benchmark enables preload performance capture', () => {
const source = readFileSync(
join(
workspaceRoot,
'apps/electron-backend-e2e/src/performance/m3u-refresh-cancellation.benchmark.ts'
),
'utf8'
);
assert.match(source, /IPTVNATOR_PERF_CAPTURE:\s*'1'/);
});