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

Bug: "React Developer Tools" Chrome Extension unable to profile page rendering #28917

Open
SomervilleTom opened this issue Apr 25, 2024 · 0 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@SomervilleTom
Copy link

I'm unable to profile the rendering of a page in a Chrome browser launched from Visual Studio Code ("VSC"). I think I'm using the most recent stable versions of Chrome and the "React Developer Tools" extension.

I'm attaching screenshots to help explain the behavior I'm seeing.

The page I'm rendering takes less than a second to render in "production" mode (created by "yarn build") and more than 90 seconds to render when launched from VSC. I want to profile the development version in hopes of finding a workaround to whatever is causing this 100x slowdown.

Here is what I'm seeing:

  1. Wait until the page renders ("Rendered page")
  2. Open Profiler tab in Chrome Developer Tools ("Initial Profiler tab")
  3. Click the "record" button ("Profiling in progress")
  4. Enter "CNTRL r" to cause a reload. The developer tools is stuck on the "Sources" tab and flashes uncontrollably, apparently as source files are loaded ("Flashing while re-rendering").
  5. Wait until the page renders. Note the console errors at the bottom ("Stable after re-rendering completes, two console complaints")
  6. Attempt to open the "Profiler" tab -- it now says "Profiling not supported" ("Profiler tab now says "Profiling not supported"")

I note that the complaint in the final screenshot references a very old version of React (16.5+). Its embedded link goes to an old and stale React documentation page.

React version: "^18.2.0"
React DeveloperTools version: b566064 on 4/15/2024

Screenshots follow:

00_rendered_page
Rendered page

01_initial_profiler
Initial Profiler tab

02_in_progress
Profiling in progress

03_flashing
Flashing while re-rendering

04_stable_with_console_error_after_rendering
**Stable after re-rendering completes, two console complaints"

05_Profiling_not_supported_after_render
Profiler tab now says "Profiling not supported"

Steps To Reproduce

See above

Link to code example:

Too hard to create, see screenshots above

The current behavior

See screenshots above

The expected behavior

I expect to see a profile report

@SomervilleTom SomervilleTom added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant