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

feat(engine): add tooltips for performance timings #4541

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Conversation

nolanlawson
Copy link
Contributor

@nolanlawson nolanlawson commented Sep 9, 2024

Details

This is a small follow-up to #4511: it adds tooltips that are visible when hovering over the custom timings in DevTools.

Screenshot 2024-09-09 at 2 05 13 PM

It seems to me that the main benefit of these tooltips is to merely recapitulate the same name as the slice (this is what a lot of the other tooltips in the DevTools UI do). I personally find it annoying to have to zoom in to read the full text, so it's nice to be able to see it without zooming.

These tooltips are pretty minimal because I didn't want to clutter the UI – they mostly just repeat the slice names while adding a hint of context.

The next PR would be to add mutation tracking so that we can report why a component re-rendered (#4542), but I think this may be a bit trickier so I am holding off for now.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🔬 Yes, it does include an observable change.

New DevTools visualizations! In dev mode only.

@nolanlawson nolanlawson requested a review from a team as a code owner September 9, 2024 21:08
Copy link
Collaborator

@wjhsf wjhsf left a comment

Choose a reason for hiding this comment

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

Fancy! 📈

nolanlawson and others added 2 commits September 10, 2024 10:19
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
@nolanlawson nolanlawson merged commit b4377c7 into master Sep 10, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/tooltips branch September 10, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants