Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Performance.mark events in PerformanceTracer #48200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

huntie
Copy link
Member

@huntie huntie commented Dec 10, 2024

Summary:
Wires up Performance.mark() events, completing support for User Timings in Fusebox.

Other changes:

  • Refactors reportMeasure to receive a duration.
  • Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Dec 10, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Dec 10, 2024
…k#48200)

Summary:
Pull Request resolved: facebook#48200

Wires up `Performance.mark()` events, completing support for User Timings in Fusebox.

Other changes:

- Refactors `reportMeasure` to receive a `duration`.
- Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283
huntie added a commit to huntie/react-native that referenced this pull request Dec 11, 2024
…k#48200)

Summary:
Pull Request resolved: facebook#48200

Wires up `Performance.mark()` events, completing support for User Timings in Fusebox.

Other changes:

- Refactors `reportMeasure` to receive a `duration`.
- Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Dec 11, 2024
…k#48200)

Summary:
Pull Request resolved: facebook#48200

Wires up `Performance.mark()` events, completing support for User Timings in Fusebox.

Other changes:

- Refactors `reportMeasure` to receive a `duration`.
- Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283
Summary:
Updates `ReactPerfLogger` (now renamed `ReactPerfettoLogger`) to log to Perfetto only.

This precedes moving `FuseboxTracer` calls into the existing `PerformanceEntryReporter` for both User Timing events and Interaction events.

Changelog: [Internal]

Differential Revision: D66600278
…(2/2) (facebook#48043)

Summary:
Pull Request resolved: facebook#48043

Adds a new `PerformanceTracing` API to replace `ReactPerfLogger` and `FuseboxTracer`.

- Mostly a clone of `FuseboxTracer`, with small refactorings.
- Exposes a new `CdpTracing.h` header, intended for shared CDP/Chrome types (that will later propagate through to the runtime impl of `performance.mark,measure()`).
- These live in a new `jsinspector_tracing` library, to avoid a dependency cycle.

**Key change**: With both diffs, `PerformanceTracer` is added to `PerformanceEntryReporter` to initially wire up the `performance.measure` event — replacing the previous routing.

- `FuseboxTracer` remains load-bearing for the out-of-tree call to `stopTracingAndWriteToFile()`.

Changelog: [Internal]

Differential Revision: D66650181

Reviewed By: rubennorte
huntie added a commit to huntie/react-native that referenced this pull request Dec 12, 2024
…k#48200)

Summary:
Pull Request resolved: facebook#48200

Wires up `Performance.mark()` events, completing support for User Timings in Fusebox.

Other changes:

- Refactors `reportMeasure` to receive a `duration`.
- Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283
@facebook-github-bot
Copy link
Contributor

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

…k#48200)

Summary:
Pull Request resolved: facebook#48200

Wires up `Performance.mark()` events, completing support for User Timings in Fusebox.

Other changes:

- Refactors `reportMeasure` to receive a `duration`.
- Fixes conversion for time values (ms -> µs) in emitted trace events.

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D66704283
@facebook-github-bot
Copy link
Contributor

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

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 p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants