-
Couldn't load subscription status.
- Fork 49.7k
[Tracks] Annotate rnPerfIssue for Cascading Updates in DEV #34961
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
Open
huntie
wants to merge
1
commit into
facebook:main
Choose a base branch
from
huntie:rn-perf-issues
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+13
−0
Conversation
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
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Oct 24, 2025
Summary: Introduces the concept of **Performance Issues**, an experimental performance signals concept for React Native. **Design** Performance Issues are an **experimental** user space API via the User Timings [`devtools` object](https://developer.chrome.com/docs/devtools/performance/extension#devtools_object). ``` performance.measure({ start, end, detail: { devtools: { ... rnIssueLevel: 'info' | 'warning' | 'error' } } }); ``` When `rnIssueLevel` is present, we eagerly report an the event over CDP, regardless of an active performance trace, via the `"__react_native_perf_issues_reporter"` runtime binding. **This diff** - Adds a `perfIssuesEnabled` feature flag. - Initial implementation of the above API. - Initially reports a "Cascading Render" issue, aligning 1:1 with the corresponding React performance track event (note: to be added in the React codebase, see facebook/react#34961). This feature is gated by the `perfMonitorV2Enabled` feature flag. Changelog: [Internal] Differential Revision: D85448200
6038817 to
cfba372
Compare
cfba372 to
3b890ce
Compare
huntie
commented
Oct 28, 2025
| name: 'React: Cascading Update', | ||
| severity: 'warning', | ||
| description: | ||
| 'A cascading update is a update that is triggered by a previous update. This can lead to performance issues and should be avoided.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoxyq Let me know what you think about this description and if we can improve it (as you wrote the docs!)
hoxyq
reviewed
Oct 28, 2025
3b890ce to
c5f34e7
Compare
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Oct 28, 2025
Summary:
Introduces the concept of **Performance Issues**, an experimental performance signals concept for React Native.
**Design**
Performance Issues are an **experimental** user space API via the User Timings `detail` object.
```
performance.measure({
start,
end,
detail: {
devtools: {
...
},
rnPerfIssue: {
name: 'React: Cascading Update',
severity: 'warning', // 'info' | 'warning' | 'error',
description:
'A cascading update is a update that is triggered by a previous update. This can lead to performance issues and should be avoided.',
learnMoreUrl:
'https://react.dev/reference/dev-tools/react-performance-tracks#cascading-updates',
}
}
});
```
When `rnPerfIssue` is present, we eagerly report an the event over CDP, regardless of an active performance trace, via the `"__react_native_perf_issues_reporter"` runtime binding.
**This diff**
- Adds a `perfIssuesEnabled` feature flag.
- Initial implementation of the above API.
- Initially reports a "Cascading Render" issue, aligning 1:1 with the corresponding React performance track event (note: to be added in the React codebase, see facebook/react#34961).
This feature is gated by the `perfMonitorV2Enabled` feature flag.
Changelog: [Internal]
Differential Revision: D85448200
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Oct 28, 2025
…ate payload structure for Performance Issues (facebook#54265) Summary: Pull Request resolved: facebook#54265 Introduces the concept of **Performance Issues**, an experimental performance signals concept for React Native. **Design** Performance Issues are an **experimental** user space API via the User Timings `detail` object. ``` performance.measure({ start, end, detail: { devtools: { ... }, rnPerfIssue: { name: 'React: Cascading Update', severity: 'warning', // 'info' | 'warning' | 'error', description: 'A cascading update is a update that is triggered by a previous update. This can lead to performance issues and should be avoided.', learnMoreUrl: 'https://react.dev/reference/dev-tools/react-performance-tracks#cascading-updates', } } }); ``` When `rnPerfIssue` is present, we eagerly report an the event over CDP, regardless of an active performance trace, via the `"__react_native_perf_issues_reporter"` runtime binding. **This diff** - Adds a `perfIssuesEnabled` feature flag. - Initial implementation of the above API. - Initially reports a "Cascading Render" issue, aligning 1:1 with the corresponding React performance track event (note: to be added in the React codebase, see facebook/react#34961). This feature is gated by the `perfMonitorV2Enabled` feature flag. Changelog: [Internal] Differential Revision: D85448200
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
Updates
ReactFiberPerformanceTrack.jsto report a React Native Performance Issue (rnPerfIssue, see facebook/react-native#54265) when emitting a Cascading Update trace event when__DEV__is set.How did you test this change?
Tested end to end with the experiment in React Native. [Meta only]: See test plan of D85448199.