Add Scheduling Profiler GK link to Timeline UI for FB build (#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.
This commit is contained in:
Brian Vaughn
2021-11-09 16:10:48 -05:00
committed by GitHub
parent a04f13d299
commit e0aa5e205f

View File

@@ -10,6 +10,7 @@
import type {DataResource} from './createDataResourceFromImportedFile';
import type {ViewState} from './types';
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
import * as React from 'react';
import {
Suspense,
@@ -79,6 +80,19 @@ export function Timeline(_: {||}) {
const Welcome = ({onFileSelect}: {|onFileSelect: (file: File) => void|}) => (
<ol className={styles.WelcomeInstructionsList}>
{isInternalFacebookBuild && (
<li className={styles.WelcomeInstructionsListItem}>
Enable the
<a
className={styles.WelcomeInstructionsListItemLink}
href="https://fburl.com/react-devtools-scheduling-profiler-gk"
rel="noopener noreferrer"
target="_blank">
<code>react_enable_scheduling_profiler</code> GK
</a>
.
</li>
)}
<li className={styles.WelcomeInstructionsListItem}>
Open a website that's built with the
<a