Skip to content

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Oct 5, 2025

Preview: https://react-hyygbakob-fbopensource.vercel.app/reference/dev-tools/react-performance-tracks

Only documents that they exist and when you need them. Specifics are build tool and framework dependent. We could come up with a list of build tools/frameworks we want to reference but how that list is chose and curated may be controversial so I left it vague for now.

The main motivation was that the perf track docs said you only need to use <Profiler> in prod builds to opt-into Component tracks. But you need both: a profiling build and wrapping a subtree in <Profiler>/RDT installed.


#### Caveats {/*caveats*/}

* Profiling adds some additional overhead, so **it is disabled in the production build by default.** To opt into production profiling, you need to enable a [special production build with profiling enabled.](https://fb.me/react-profiling)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That gist included docs for Webpack 4 and CRA 3. Both are either outdated or deprecated so I just kept a vague ("use bundler aliases or framework").

Copy link

github-actions bot commented Oct 5, 2025

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@eps1lon eps1lon force-pushed the sebbie/10-06-document_react_s_profiling_build branch from c7c2d22 to 7f93de1 Compare October 5, 2025 23:12
@eps1lon eps1lon requested a review from hoxyq October 5, 2025 23:14
@eps1lon eps1lon marked this pull request as ready for review October 5, 2025 23:14
@eps1lon eps1lon merged commit 28e9bd9 into reactjs:main Oct 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants