From e0aa5e205feee53043ce1ae8726fe732866e6ea7 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 9 Nov 2021 16:10:48 -0500 Subject: [PATCH] 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. --- packages/react-devtools-timeline/src/Timeline.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/react-devtools-timeline/src/Timeline.js b/packages/react-devtools-timeline/src/Timeline.js index 4b6d21f8a8..33459fc454 100644 --- a/packages/react-devtools-timeline/src/Timeline.js +++ b/packages/react-devtools-timeline/src/Timeline.js @@ -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|}) => (
    + {isInternalFacebookBuild && ( +
  1. + Enable the + + react_enable_scheduling_profiler GK + + . +
  2. + )}
  3. Open a website that's built with the