Skip to content

fix: performance detector broken by third-party console overrides - #155

Open
pedrocruz-seon wants to merge 1 commit into
theajack:masterfrom
pedrocruz-seon:fix-performance-detector-console-baseline
Open

fix: performance detector broken by third-party console overrides#155
pedrocruz-seon wants to merge 1 commit into
theajack:masterfrom
pedrocruz-seon:fix-performance-detector-console-baseline

Conversation

@pedrocruz-seon

@pedrocruz-seon pedrocruz-seon commented Aug 14, 2026

Copy link
Copy Markdown

Summary

The performance detector's baseline used a cached console.log captured at init. When SDKs like Sentry wrap console.log before that, every baseline tick includes their breadcrumb/serialization overhead, so maxPrintTime inflates and the tablePrintTime > maxPrintTime * 10 check never fires—even with DevTools open.

Fix

Measure the baseline with JSON.stringify on the same large object array instead of console.log, so the baseline stays independent of console wrappers and DevTools rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant