Skip to content

Commit e0aa5e2

Browse files
author
Brian Vaughn
authored
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.
1 parent a04f13d commit e0aa5e2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/react-devtools-timeline/src/Timeline.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import type {DataResource} from './createDataResourceFromImportedFile';
1111
import type {ViewState} from './types';
1212

13+
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
1314
import * as React from 'react';
1415
import {
1516
Suspense,
@@ -79,6 +80,19 @@ export function Timeline(_: {||}) {
7980

8081
const Welcome = ({onFileSelect}: {|onFileSelect: (file: File) => void|}) => (
8182
<ol className={styles.WelcomeInstructionsList}>
83+
{isInternalFacebookBuild && (
84+
<li className={styles.WelcomeInstructionsListItem}>
85+
Enable the
86+
<a
87+
className={styles.WelcomeInstructionsListItemLink}
88+
href="https://fburl.com/react-devtools-scheduling-profiler-gk"
89+
rel="noopener noreferrer"
90+
target="_blank">
91+
<code>react_enable_scheduling_profiler</code> GK
92+
</a>
93+
.
94+
</li>
95+
)}
8296
<li className={styles.WelcomeInstructionsListItem}>
8397
Open a website that's built with the
8498
<a

0 commit comments

Comments
 (0)