Skip to content

Commit f43dbe3

Browse files
committed
Enable Performance panel by default
1 parent 62f76df commit f43dbe3

3 files changed

Lines changed: 0 additions & 29 deletions

File tree

front_end/entrypoints/rn_fusebox/FuseboxExperimentsObserver.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ import * as UI from '../../ui/legacy/legacy.js';
1313
import {FuseboxWindowTitleManager} from './FuseboxWindowTitleManager.js';
1414

1515
const UIStrings = {
16-
/**
17-
* @description Message for the "settings changed" banner shown when a reload is required for the Performance panel.
18-
*/
19-
reloadRequiredForPerformancePanelMessage:
20-
'[Profiling build first run] One or more settings have changed. Please reload to access the Performance panel.',
2116
/**
2217
* @description Message for the "settings changed" banner shown when a reload is required for the Network panel.
2318
*/
@@ -55,7 +50,6 @@ export class FuseboxFeatureObserver implements
5550
if (unstable_isProfilingBuild) {
5651
FuseboxWindowTitleManager.instance().setSuffix('[PROFILING]');
5752
this.#hideUnsupportedFeaturesForProfilingBuilds();
58-
this.#ensurePerformancePanelEnabled();
5953
}
6054

6155
if (unstable_networkInspectionEnabled) {
@@ -91,26 +85,6 @@ export class FuseboxFeatureObserver implements
9185
});
9286
}
9387

94-
#ensurePerformancePanelEnabled(): void {
95-
if (
96-
!Root.Runtime.experiments.isEnabled(
97-
Root.Runtime.ExperimentName.ENABLE_PERFORMANCE_PANEL,
98-
)
99-
) {
100-
Root.Runtime.experiments.setEnabled(
101-
Root.Runtime.ExperimentName.ENABLE_PERFORMANCE_PANEL,
102-
true,
103-
);
104-
105-
const inspectorView = UI.InspectorView?.InspectorView?.instance();
106-
if (inspectorView) {
107-
inspectorView.displayReloadRequiredWarning(
108-
i18nString(UIStrings.reloadRequiredForPerformancePanelMessage),
109-
);
110-
}
111-
}
112-
}
113-
11488
#ensureNetworkPanelEnabled(): void {
11589
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.ENABLE_NETWORK_PANEL)) {
11690
return;

front_end/global_typings/react_native.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ declare global {
1919
var reactNativeOpenInEditorButtonImage: string|undefined;
2020
// eslint-disable-next-line no-var,@typescript-eslint/naming-convention
2121
var FB_ONLY__reactNativeFeedbackLink: string|undefined;
22-
// eslint-disable-next-line no-var,@typescript-eslint/naming-convention
23-
var FB_ONLY__enablePerformance: unknown;
2422
}
2523
}

front_end/panels/timeline/timeline-meta.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ UI.ViewManager.registerViewExtension({
8888
title: i18nLazyString(UIStrings.performance),
8989
commandPrompt: i18nLazyString(UIStrings.showPerformance),
9090
order: 50,
91-
experiment: globalThis.FB_ONLY__enablePerformance === true ? undefined : Root.Runtime.ExperimentName.ENABLE_PERFORMANCE_PANEL,
9291
async loadView() {
9392
const Timeline = await loadTimelineModule();
9493
return Timeline.TimelinePanel.TimelinePanel.instance();

0 commit comments

Comments
 (0)