Skip to content

Commit cbb8c83

Browse files
authored
feat: define global for enabling Performance (#159)
1 parent bc635fa commit cbb8c83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

front_end/global_typings/react_native.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ declare global {
1212
var enableReactNativeOpenInExternalEditor: boolean|undefined;
1313
var reactNativeOpenInEditorButtonImage: string|undefined;
1414
var FB_ONLY__reactNativeFeedbackLink: string|undefined;
15+
var FB_ONLY__enablePerformance: any;
1516
}
1617
}

front_end/panels/timeline/timeline-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ UI.ViewManager.registerViewExtension({
8787
title: i18nLazyString(UIStrings.performance),
8888
commandPrompt: i18nLazyString(UIStrings.showPerformance),
8989
order: 50,
90-
experiment: Root.Runtime.ExperimentName.ENABLE_PERFORMANCE_PANEL,
90+
experiment: globalThis.FB_ONLY__enablePerformance === true ? undefined : Root.Runtime.ExperimentName.ENABLE_PERFORMANCE_PANEL,
9191
async loadView() {
9292
const Timeline = await loadTimelineModule();
9393
return Timeline.TimelinePanel.TimelinePanel.instance();

0 commit comments

Comments
 (0)