@@ -60,6 +60,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
6060 private readonly options : RNWelcomeOptions ;
6161
6262 #reactNativeVersion: string | undefined ;
63+ #isProfilingBuild: boolean = false ;
6364
6465 static instance ( options : RNWelcomeOptions ) : RNWelcomeImpl {
6566 if ( ! rnWelcomeImplInstance ) {
@@ -81,14 +82,19 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
8182 super . wasShown ( ) ;
8283 this . registerCSSFiles ( [ rnWelcomeStyles ] ) ;
8384 this . render ( ) ;
84- UI . InspectorView . InspectorView . instance ( ) . showDrawer ( { focus : true , hasTargetDrawer : false } ) ;
85+
86+ if ( ! this . #isProfilingBuild) {
87+ UI . InspectorView . InspectorView . instance ( ) . showDrawer ( { focus : true , hasTargetDrawer : false } ) ;
88+ }
8589 }
8690
8791 modelAdded ( model : SDK . ReactNativeApplicationModel . ReactNativeApplicationModel ) : void {
8892 model . ensureEnabled ( ) ;
8993 model . addEventListener (
9094 SDK . ReactNativeApplicationModel . Events . MetadataUpdated , this . #handleMetadataUpdated, this ) ;
95+
9196 this . #reactNativeVersion = model . metadataCached ?. reactNativeVersion ;
97+ this . #isProfilingBuild = model . metadataCached ?. unstable_isProfilingBuild || false ;
9298 }
9399
94100 modelRemoved ( model : SDK . ReactNativeApplicationModel . ReactNativeApplicationModel ) : void {
@@ -99,6 +105,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
99105 #handleMetadataUpdated(
100106 event : Common . EventTarget . EventTargetEvent < Protocol . ReactNativeApplication . MetadataUpdatedEvent > ) : void {
101107 this . #reactNativeVersion = event . data . reactNativeVersion ;
108+ this . #isProfilingBuild = event . data . unstable_isProfilingBuild || false ;
102109
103110 if ( this . isShowing ( ) ) {
104111 this . render ( ) ;
@@ -136,7 +143,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
136143 ) . toString ( ) ;
137144
138145 const launchId = Root . Runtime . Runtime . queryParam ( 'launchId' ) ;
139-
146+
140147 render ( html `
141148 < div class ="rn-welcome-panel ">
142149 < header class ="rn-welcome-hero ">
0 commit comments