Pause browser collectors while the panel is hidden - #159
Merged
mattcosta7 merged 1 commit intoAug 3, 2026
Conversation
mattcosta7
temporarily deployed
to
github-pages-preview
August 3, 2026 00:27 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
Adds low-overhead core collection while retaining deeper instrumentation through opt-in diagnostic mode.
Changes:
- Adds collection-mode configuration and mode-aware collector lifecycle.
- Disables higher-overhead pointer, style, reflow, and compositor instrumentation in core mode.
- Hides most diagnostic metrics and documents mode selection.
Show a summary per file
| File | Description |
|---|---|
.changeset/collection-modes.md |
Records the patch release. |
README.md |
Documents collection modes. |
performance-panel.tsx |
Conditionally displays diagnostic metrics. |
decorators/universal.ts |
Selects mode and recreates cores. |
core/preview-core.ts |
Propagates collection mode. |
core/performance-types.ts |
Defines mode types and parameters. |
collectors/collector-manager.ts |
Selects collectors by mode. |
collectors/input-collector.ts |
Makes pointer sampling optional. |
collectors/paint-collector.ts |
Makes layer scanning optional. |
collectors/__tests__/collector-manager.browser.test.ts |
Tests mode-specific orchestration. |
collectors/__tests__/input-collector.browser.test.ts |
Tests disabled pointer tracking. |
collectors/__tests__/paint-collector.browser.test.ts |
Tests disabled layer scanning. |
__tests__/performance-decorator-universal.browser.test.ts |
Tests defaults and mode changes. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 13/13 changed files
- Comments generated: 1
- Review effort level: Balanced
mattcosta7
marked this pull request as draft
August 3, 2026 00:31
mattcosta7
force-pushed
the
v1.2/03-visible-panel-updates
branch
from
August 3, 2026 02:17
de57742 to
dfd8d67
Compare
mattcosta7
force-pushed
the
v1.2/04-collection-modes
branch
from
August 3, 2026 02:22
562a9b8 to
2152cba
Compare
mattcosta7
temporarily deployed
to
github-pages-preview
August 3, 2026 02:22 — with
GitHub Actions
Inactive
mattcosta7
force-pushed
the
v1.2/04-collection-modes
branch
from
August 3, 2026 04:24
2152cba to
ece99ce
Compare
mattcosta7
force-pushed
the
v1.2/03-visible-panel-updates
branch
from
August 3, 2026 04:24
dfd8d67 to
119dbc4
Compare
mattcosta7
merged commit Aug 3, 2026
ece99ce
into
v1.2/03-visible-panel-updates
8 of 15 checks passed
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduce addon background overhead without adding a public collection-mode API.
Stack
Validation
npm run tscnpm run buildpublintand Are The Types Wrong: no issuesnpm run lint -- --no-cache(one pre-existing unused suppression warning)