Skip to content

Update FuseboxTracer to closer align with Chrome trace events#48020

Closed
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D66579308
Closed

Update FuseboxTracer to closer align with Chrome trace events#48020
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D66579308

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Nov 29, 2024

Summary:
Progress towards Performance panel display parity for User Timing events in Chrome DevTools.

  • Support nullable track name in ReactPerfLogger, passing track name directly to FuseboxTracer.
  • Update FuseboxTracer to register "Main" process and send V8-aligned blink.user_timing-categorised tracing events.

The previous track naming strategy continues to be used under Perfetto.

Changelog: [Internal]

Better, but not perfect yet

For now, this is probably the upper limit of how aligned we can be with Chrome on web, since our forked DevTools frontend is 6mo+ behind main. Notably, it does not include equivalent custom track handling today: ChromeDevTools/devtools-frontend@4b4435f

{F1969750671}

Importing an exact trace from Chrome into RNDT is unable to sub-group the "Timings" track.

Differential Revision: D66579308

Summary:
Progress towards Performance panel display parity for User Timing events in Chrome DevTools.

- Support nullable `track` name in `ReactPerfLogger`, passing track name directly to `FuseboxTracer`.
- Update `FuseboxTracer` to register "Main" process and send V8-aligned `blink.user_timing`-categorised tracing events.

The previous track naming strategy continues to be used under Perfetto.

Changelog: [Internal]

**Better, but not perfect yet**

For now, this is probably the upper limit of how aligned we can be with Chrome on web, since our forked DevTools frontend is 6mo+ behind `main`. Notably, it does not include equivalent custom track handling today: ChromeDevTools/devtools-frontend@4b4435f

{F1969750671} 

> Importing an exact trace from Chrome into RNDT is unable to sub-group the "Timings" track.

Differential Revision: D66579308
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 29, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D66579308

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 11c214d.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 11c214d

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D66579308 branch January 30, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants