@@ -10,21 +10,30 @@ import '../../panels/developer_resources/developer_resources-meta.js';
1010import '../inspector_main/inspector_main-meta.js' ;
1111import '../../panels/issues/issues-meta.js' ;
1212import '../../panels/mobile_throttling/mobile_throttling-meta.js' ;
13- import '../../panels/timeline/timeline -meta.js' ;
13+ import '../../panels/js_profiler/js_profiler -meta.js' ;
1414import '../../panels/rn_welcome/rn_welcome-meta.js' ;
1515
1616import * as Root from '../../core/root/root.js' ;
1717import * as Main from '../main/main.js' ;
1818
19+ // Legacy JavaScript Profiler - we support this until Hermes can support the
20+ // modern Performance panel.
21+ Root . Runtime . experiments . register (
22+ Root . Runtime . ExperimentName . JS_PROFILER_TEMP_ENABLE ,
23+ 'Enable JavaScript Profiler (legacy)' ,
24+ /* unstable */ false ,
25+ ) ;
26+
1927Root . Runtime . experiments . register (
2028 Root . Runtime . ExperimentName . REACT_NATIVE_SPECIFIC_UI ,
2129 'Show React Native-specific UI' ,
2230 /* unstable */ false ,
2331) ;
2432
25- Root . Runtime . experiments . enableExperimentsByDefault (
26- [ Root . Runtime . ExperimentName . REACT_NATIVE_SPECIFIC_UI ] ,
27- ) ;
33+ Root . Runtime . experiments . enableExperimentsByDefault ( [
34+ Root . Runtime . ExperimentName . JS_PROFILER_TEMP_ENABLE ,
35+ Root . Runtime . ExperimentName . REACT_NATIVE_SPECIFIC_UI ,
36+ ] ) ;
2837
2938// @ts -ignore Exposed for legacy layout tests
3039self . runtime = Root . Runtime . Runtime . instance ( { forceNew : true } ) ;
0 commit comments