-
Notifications
You must be signed in to change notification settings - Fork 49.3k
[Reconciler] Set ProfileMode for Host Root Fiber by default in dev #34432
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
Conversation
// 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)) { |
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.
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.
Comparing: 0c813c5...e3a6386 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
b7a663c
to
e3a6386
Compare
…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)
…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)
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.