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

Add Scheduling Profiler GK link to Timeline UI for FB build #22730

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Nov 9, 2021

This is a constant source of confusion for FB engineers trying to figure out why Chrome profiling data does not have any React marks.

Internal Facebook build will now show the following additional line:
Screen Shot 2021-11-09 at 3 23 21 PM

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Nov 9, 2021
This is a constant source of confusion for FB engineers trying to figure out why Chrome profiling data does not have any React marks.
@bvaughn bvaughn force-pushed the facebook-timeline-gk branch from a2d9f1b to c85c9aa Compare November 9, 2021 20:23
Enable the
<a
className={styles.WelcomeInstructionsListItemLink}
href="https://fburl.com/react-devtools-scheduling-profiler-gk"
Copy link
Contributor

@steveluscher steveluscher Nov 9, 2021

Choose a reason for hiding this comment

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

Maybe make this reload the page with ?gk_debug&gk_enable=react_enable_scheduling_profiler instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooh, that's an interesting suggestion. Guess we could also enable the react_enable_profile_timer GK too and remove the "profiling build" instruction entirely. Let me think about that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay I think I might pass on this for now for a few reasons:

  1. Facebook internal build doesn't necessarily mean you're viewing a Facebook website (that supports URL params like gk_debug).
  2. I don't think there's a way to detect if the user has already loaded a build with the right GKs (and avoid showing them a reload button unnecessarily).

@bvaughn bvaughn merged commit e0aa5e2 into facebook:main Nov 9, 2021
@bvaughn bvaughn deleted the facebook-timeline-gk branch November 9, 2021 21:10
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
…#22730)

This is a constant source of confusion for FB engineers trying to figure out why Chrome profiling data does not have any React marks.
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.

3 participants