Skip to content

feat(middleware): expose complete React commit timeline - #464

Open
avocado-cb wants to merge 1 commit into
callstackincubator:mainfrom
avocado-cb:feat/react-commit-timeline
Open

feat(middleware): expose complete React commit timeline#464
avocado-cb wants to merge 1 commit into
callstackincubator:mainfrom
avocado-cb:feat/react-commit-timeline

Conversation

@avocado-cb

Copy link
Copy Markdown

Description

Adds an additive commits field to the React agent stopProfiling result. The field contains every captured commit in chronological order with:

  • root and commit identifiers
  • render, effect, and passive-effect durations
  • timestamp and priority
  • rendered-fiber and updater counts
  • change-description availability

The existing duration-ranked, size-limited topSlowCommits field remains unchanged for backward compatibility and quick scouting. The React agent documentation and middleware release plan are updated alongside the implementation.

Related Issue

Closes #462

Context

stopProfiling currently exposes only the slowest commits, even though the normalized React DevTools profile retains the full recording. Downstream performance analysis needs the complete timeline to correlate render bursts and post-process the same commit metadata available to profiler tooling.

The timeline is sorted by timestamp, then root id and commit index for deterministic ordering across roots. A regression test covers ordering, metadata, and preservation of the existing slow-commit summary.

Testing

  • pnpm checks:affected
  • pnpm test:affected
  • pnpm release:plan
  • Pre-push repository-wide lint and typecheck hooks

Co-authored-by: Codex <codex-noreply@coinbase.com>
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.

Expose the complete React profiler commit timeline from stopProfiling

1 participant