mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
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:
14
packages/react-devtools-timeline/src/Timeline.js
vendored
14
packages/react-devtools-timeline/src/Timeline.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user