Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Sep 9, 2025

Requiring DevTools to be present for dev builds seems like an overkill, let's enable the instrumentation by default.

Nothing changes for profiling or production artifacts.

@hoxyq hoxyq requested a review from sebmarkbage September 9, 2025 15:51
@meta-cla meta-cla bot added the CLA Signed label Sep 9, 2025
// Always collect profile timings when DevTools are present.
// This enables DevTools to start capturing timing at any point–
// Without some nodes in the tree having empty base times.
if (__DEV__ || (enableProfilerTimer && isDevToolsPresent)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be a breaking change but my preference would be that this is only on for DEV and not if isDevToolsPresent. Since otherwise if I have a profiling build and I have devtools installed, but my colleague doesn't, it can be confusing why it doesn't work. Whereas if it's always <Profiler> that opt-in to profiling builds then I'd have to add it and then my colleague would see it too.

@react-sizebot
Copy link

react-sizebot commented Sep 9, 2025

Comparing: 0c813c5...e3a6386

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.05% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.65 kB 530.65 kB = 93.49 kB 93.49 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 658.20 kB 658.20 kB = 115.79 kB 115.79 kB
facebook-www/ReactDOM-prod.classic.js = 682.36 kB 682.36 kB = 119.83 kB 119.83 kB
facebook-www/ReactDOM-prod.modern.js = 672.79 kB 672.79 kB = 118.14 kB 118.14 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against e3a6386

@hoxyq hoxyq force-pushed the tweak-profile-mode-on-fiber-root branch from b7a663c to e3a6386 Compare September 12, 2025 11:12
@hoxyq hoxyq merged commit 0e10ee9 into facebook:main Sep 12, 2025
241 checks passed
@hoxyq hoxyq deleted the tweak-profile-mode-on-fiber-root branch September 12, 2025 11:20
github-actions bot pushed a commit that referenced this pull request Sep 12, 2025
…34432)

Requiring DevTools to be present for dev builds seems like an overkill,
let's enable the instrumentation by default.

Nothing changes for profiling or production artifacts.

DiffTrain build for [0e10ee9](0e10ee9)
github-actions bot pushed a commit that referenced this pull request Sep 12, 2025
…34432)

Requiring DevTools to be present for dev builds seems like an overkill,
let's enable the instrumentation by default.

Nothing changes for profiling or production artifacts.

DiffTrain build for [0e10ee9](0e10ee9)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Sep 14, 2025
…acebook#34432)

Requiring DevTools to be present for dev builds seems like an overkill,
let's enable the instrumentation by default.

Nothing changes for profiling or production artifacts.

DiffTrain build for [0e10ee9](facebook@0e10ee9)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Sep 14, 2025
…acebook#34432)

Requiring DevTools to be present for dev builds seems like an overkill,
let's enable the instrumentation by default.

Nothing changes for profiling or production artifacts.

DiffTrain build for [0e10ee9](facebook@0e10ee9)
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.

3 participants