Skip to content
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

[Fiber] Log Effect and Render Times in Offscreen Commit Phase #31788

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

sebmarkbage
Copy link
Collaborator

In #30967 and #30983 I added logging of the just rendered components and the effects. However this didn't consider the special Offscreen passes. So this adds the same thing to those passes.

Log component effect timings for disconnected/reconnected offscreen subtrees. This includes initial mount of a Suspense boundary.

Log component render timings for reconnected and already offscreen offscreen subtrees.

Copy link

vercel bot commented Dec 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 9:57pm

@react-sizebot
Copy link

react-sizebot commented Dec 15, 2024

Comparing: f5077bc...7aaac76

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 = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 510.66 kB 510.66 kB = 91.30 kB 91.30 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 = 515.44 kB 515.44 kB = 92.15 kB 92.15 kB
facebook-www/ReactDOM-prod.classic.js = 592.36 kB 592.36 kB = 104.36 kB 104.36 kB
facebook-www/ReactDOM-prod.modern.js = 582.63 kB 582.63 kB = 102.80 kB 102.81 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.js +0.70% 433.50 kB 436.52 kB +0.35% 70.06 kB 70.30 kB
oss-experimental/react-art/cjs/react-art.development.js +0.56% 580.14 kB 583.39 kB +0.20% 93.36 kB 93.55 kB
oss-experimental/react-dom/cjs/react-dom-profiling.profiling.js +0.51% 561.16 kB 564.05 kB +0.19% 99.68 kB 99.87 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.49% 663.12 kB 666.40 kB +0.18% 105.74 kB 105.94 kB
oss-experimental/react-dom/cjs/react-dom-client.development.js +0.35% 966.70 kB 970.06 kB +0.08% 163.24 kB 163.38 kB
oss-experimental/react-dom/cjs/react-dom-profiling.development.js +0.34% 983.15 kB 986.50 kB +0.08% 166.07 kB 166.20 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +0.34% 983.64 kB 987.00 kB +0.08% 167.01 kB 167.14 kB

Generated by 🚫 dangerJS against c18813c

@@ -4191,7 +4191,7 @@ function doubleInvokeEffectsOnFiber(
}
reappearLayoutEffects(root, fiber.alternate, fiber, false);
if (shouldDoubleInvokePassiveEffects) {
reconnectPassiveEffects(root, fiber, NoLanes, null, false);
reconnectPassiveEffects(root, fiber, NoLanes, null, false, 0);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not a new issue in this PR but an existing issue is that all these phases end up double logging the effects.

@sebmarkbage sebmarkbage changed the title [Fiber] Log Effect and Render Times in Offscreen Commit Phaes [Fiber] Log Effect and Render Times in Offscreen Commit Phase Dec 16, 2024
@sebmarkbage sebmarkbage merged commit 6a4b46c into facebook:main Dec 18, 2024
187 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 18, 2024
In #30967 and
#30983 I added logging of the just
rendered components and the effects. However this didn't consider the
special Offscreen passes. So this adds the same thing to those passes.

Log component effect timings for disconnected/reconnected offscreen
subtrees. This includes initial mount of a Suspense boundary.

Log component render timings for reconnected and already offscreen
offscreen subtrees.

DiffTrain build for [6a4b46c](6a4b46c)
github-actions bot pushed a commit that referenced this pull request Dec 18, 2024
In #30967 and
#30983 I added logging of the just
rendered components and the effects. However this didn't consider the
special Offscreen passes. So this adds the same thing to those passes.

Log component effect timings for disconnected/reconnected offscreen
subtrees. This includes initial mount of a Suspense boundary.

Log component render timings for reconnected and already offscreen
offscreen subtrees.

DiffTrain build for [6a4b46c](6a4b46c)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Dec 18, 2024
…ok#31788)

In facebook#30967 and
facebook#30983 I added logging of the just
rendered components and the effects. However this didn't consider the
special Offscreen passes. So this adds the same thing to those passes.

Log component effect timings for disconnected/reconnected offscreen
subtrees. This includes initial mount of a Suspense boundary.

Log component render timings for reconnected and already offscreen
offscreen subtrees.

DiffTrain build for [6a4b46c](facebook@6a4b46c)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Dec 18, 2024
…ok#31788)

In facebook#30967 and
facebook#30983 I added logging of the just
rendered components and the effects. However this didn't consider the
special Offscreen passes. So this adds the same thing to those passes.

Log component effect timings for disconnected/reconnected offscreen
subtrees. This includes initial mount of a Suspense boundary.

Log component render timings for reconnected and already offscreen
offscreen subtrees.

DiffTrain build for [6a4b46c](facebook@6a4b46c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants