File tree Expand file tree Collapse file tree 6 files changed +15
-2
lines changed Expand file tree Collapse file tree 6 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ export enum RNExperimentName {
291
291
REACT_NATIVE_SPECIFIC_UI = 'reactNativeSpecificUI' ,
292
292
ENABLE_REACT_DEVTOOLS_PANEL = 'enableReactDevToolsPanel' ,
293
293
JS_HEAP_PROFILER_ENABLE = 'jsHeapProfilerEnable' ,
294
+ ENABLE_PERFORMANCE_PANEL = 'enablePerformancePanel' ,
294
295
}
295
296
296
297
// TODO(crbug.com/1167717): Make this a const enum again
@@ -326,6 +327,7 @@ export enum ExperimentName {
326
327
JS_HEAP_PROFILER_ENABLE = RNExperimentName . JS_HEAP_PROFILER_ENABLE ,
327
328
REACT_NATIVE_SPECIFIC_UI = RNExperimentName . REACT_NATIVE_SPECIFIC_UI ,
328
329
ENABLE_REACT_DEVTOOLS_PANEL = RNExperimentName . ENABLE_REACT_DEVTOOLS_PANEL ,
330
+ ENABLE_PERFORMANCE_PANEL = RNExperimentName . ENABLE_PERFORMANCE_PANEL ,
329
331
}
330
332
331
333
// TODO(crbug.com/1167717): Make this a const enum again
Original file line number Diff line number Diff line change @@ -235,3 +235,11 @@ RNExperiments.register({
235
235
enabledByDefault : ( { isReactNativeEntryPoint } ) => isReactNativeEntryPoint ,
236
236
configurable : false ,
237
237
} ) ;
238
+
239
+ RNExperiments . register ( {
240
+ name : RNExperimentName . ENABLE_PERFORMANCE_PANEL ,
241
+ title : 'Enable Performance panel' ,
242
+ unstable : true ,
243
+ enabledByDefault : ( { isReactNativeEntryPoint } ) => ! isReactNativeEntryPoint ,
244
+ configurable : ( { isReactNativeEntryPoint } ) => isReactNativeEntryPoint ,
245
+ } ) ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ devtools_entrypoint("entrypoint") {
32
32
" ../../panels/rn_welcome:meta" ,
33
33
" ../../panels/security:meta" ,
34
34
" ../../panels/sensors:meta" ,
35
+ " ../../panels/timeline:meta" ,
35
36
" ../../panels/web_audio:meta" ,
36
37
" ../../panels/webauthn:meta" ,
37
38
" ../main:bundle" ,
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ import '../inspector_main/inspector_main-meta.js';
15
15
import '../../panels/issues/issues-meta.js' ;
16
16
import '../../panels/mobile_throttling/mobile_throttling-meta.js' ;
17
17
import '../../panels/network/network-meta.js' ;
18
- import '../../panels/js_profiler/js_profiler-meta.js' ;
19
18
import '../../panels/react_devtools/react_devtools-meta.js' ;
20
19
import '../../panels/rn_welcome/rn_welcome-meta.js' ;
20
+ import '../../panels/timeline/timeline-meta.js' ;
21
21
22
22
import * as i18n from '../../core/i18n/i18n.js' ;
23
23
import * as Host from '../../core/host/host.js' ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ UI.ViewManager.registerViewExtension({
38
38
title : i18nLazyString ( UIStrings . title ) ,
39
39
commandPrompt : i18nLazyString ( UIStrings . command ) ,
40
40
persistence : UI . ViewManager . ViewPersistence . PERMANENT ,
41
+ order : 1000 ,
41
42
async loadView ( ) {
42
43
const Module = await loadModule ( ) ;
43
44
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ UI.ViewManager.registerViewExtension({
125
125
title : i18nLazyString ( UIStrings . performance ) ,
126
126
commandPrompt : i18nLazyString ( UIStrings . showPerformance ) ,
127
127
order : 50 ,
128
+ experiment : Root . Runtime . ExperimentName . ENABLE_PERFORMANCE_PANEL ,
128
129
async loadView ( ) {
129
130
const Timeline = await loadTimelineModule ( ) ;
130
131
return Timeline . TimelinePanel . TimelinePanel . instance ( ) ;
@@ -136,7 +137,7 @@ UI.ViewManager.registerViewExtension({
136
137
id : 'js_profiler' ,
137
138
title : i18nLazyString ( UIStrings . javascriptProfiler ) ,
138
139
commandPrompt : i18nLazyString ( UIStrings . showJavascriptProfiler ) ,
139
- persistence : UI . ViewManager . ViewPersistence . CLOSEABLE ,
140
+ persistence : UI . ViewManager . ViewPersistence . PERMANENT ,
140
141
order : 65 ,
141
142
experiment : Root . Runtime . ExperimentName . JS_PROFILER_TEMP_ENABLE ,
142
143
async loadView ( ) {
You can’t perform that action at this time.
0 commit comments