@@ -35,12 +35,6 @@ const UIStrings = {
3535 */
3636 reloadRequiredForNetworkThrottlingMessage :
3737 'Network throttling is now available in the Network panel. Please reload to enable.' ,
38- /**
39- * @description Message for the "settings changed" banner shown when a reload
40- * is required for frame timings in the Performance panel.
41- */
42- reloadRequiredForTimelineFramesMessage :
43- 'Frame timings and screenshots are now available in the Performance panel. Please reload to enable.' ,
4438 /**
4539 * @description Detail message shown when a feature is disabled due to multiple React Native hosts.
4640 */
@@ -87,8 +81,7 @@ export class FuseboxFeatureObserver implements
8781 #handleMetadataUpdated(
8882 event : Common . EventTarget . EventTargetEvent < Protocol . ReactNativeApplication . MetadataUpdatedEvent > ) : void {
8983 // eslint-disable-next-line @typescript-eslint/naming-convention
90- const { unstable_isProfilingBuild, unstable_networkInspectionEnabled, unstable_frameRecordingEnabled, unstable_networkThrottlingEnabled} =
91- event . data ;
84+ const { unstable_isProfilingBuild, unstable_networkInspectionEnabled, unstable_networkThrottlingEnabled} = event . data ;
9285
9386 if ( unstable_isProfilingBuild ) {
9487 FuseboxWindowTitleManager . instance ( ) . setSuffix ( '[PROFILING]' ) ;
@@ -101,10 +94,6 @@ export class FuseboxFeatureObserver implements
10194 this . #hideNetworkPanel( ) ;
10295 }
10396
104- if ( unstable_frameRecordingEnabled ) {
105- void this . #ensureTimelineFramesEnabled( ) ;
106- }
107-
10897 if ( unstable_networkThrottlingEnabled ) {
10998 void this . #ensureNetworkThrottlingEnabled( ) ;
11099 }
@@ -153,14 +142,6 @@ export class FuseboxFeatureObserver implements
153142 } ) ;
154143 }
155144
156- async #ensureTimelineFramesEnabled( ) : Promise < void > {
157- if ( ! Root . Runtime . experiments . isEnabled ( Root . Runtime . RNExperimentName . ENABLE_TIMELINE_FRAMES ) ) {
158- Root . Runtime . experiments . setEnabled ( Root . Runtime . RNExperimentName . ENABLE_TIMELINE_FRAMES , true ) ;
159- UI . InspectorView ?. InspectorView ?. instance ( ) ?. displayReloadRequiredWarning (
160- i18nString ( UIStrings . reloadRequiredForTimelineFramesMessage ) ) ;
161- }
162- }
163-
164145 async #ensureNetworkThrottlingEnabled( ) : Promise < void > {
165146 if ( ! Root . Runtime . experiments . isEnabled ( Root . Runtime . RNExperimentName . ENABLE_NETWORK_THROTTLING ) ) {
166147 Root . Runtime . experiments . setEnabled ( Root . Runtime . RNExperimentName . ENABLE_NETWORK_THROTTLING , true ) ;
0 commit comments