Skip to content

Conversation

rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

This adds first-class support for the detail field in performance.mark and performance.measure.

Now that we have access the JS entry in native, we can access the detail field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the detail field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911

@meta-cla meta-cla 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 Jul 15, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 15, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

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

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 15, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

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

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 15, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

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

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 15, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
@rubennorte rubennorte force-pushed the export-D78340911 branch 2 times, most recently from 2a3f653 to 870120e Compare July 16, 2025 10:17
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

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

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jul 16, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911
… the "Track:" prefix (facebook#52614)

Summary:

Changelog: [internal]

We're adding first-class support for custom tracks, so we can remove the legacy mechanism to specify tracks with the "Tracks:" prefix in the event names.

Reviewed By: sbuggay

Differential Revision: D78340910
…nd performance.measure for DevTools (facebook#52613)

Summary:

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

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

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 16, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in bd19832.

ghost pushed a commit to discord/react-native that referenced this pull request Jul 29, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911

fbshipit-source-id: 383dd1cb6fcc8a04be9e65038503986f196e23c9
kikoso pushed a commit to kikoso/react-native that referenced this pull request Aug 26, 2025
…nd performance.measure for DevTools (facebook#52613)

Summary:
Pull Request resolved: facebook#52613

Changelog: [internal]

This adds first-class support for the `detail` field in `performance.mark` and `performance.measure`.

Now that we have access the JS entry in native, we can access the `detail` field to propagate it to DevTools (and use it to extract track names for Perfetto).

In order to avoid the performance overhead of always having to extract the `detail` field from the entry, this is done lazily only if we're actively profiling with DevTools or Perfetto.

Reviewed By: sbuggay

Differential Revision: D78340911

fbshipit-source-id: 383dd1cb6fcc8a04be9e65038503986f196e23c9
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.

2 participants