@@ -7,6 +7,7 @@ import 'dart:async';
7
7
import 'package:devtools_app_shared/utils.dart' ;
8
8
import 'package:vm_service/vm_service.dart' ;
9
9
10
+ import '../../service/service_registrations.dart' as registrations;
10
11
import '../../shared/diagnostics/inspector_service.dart' ;
11
12
import '../../shared/feature_flags.dart' ;
12
13
import '../../shared/globals.dart' ;
@@ -98,6 +99,9 @@ class PerformanceController extends DisposableController
98
99
/// in selected timeline event, selected frame, etc.).
99
100
PerformanceData ? offlinePerformanceData;
100
101
102
+ bool get impellerEnabled => _impellerEnabled;
103
+ late final bool _impellerEnabled;
104
+
101
105
final _initialized = Completer <void >();
102
106
103
107
Future <void > get initialized => _initialized.future;
@@ -115,6 +119,17 @@ class PerformanceController extends DisposableController
115
119
if (! offlineController.offlineMode.value) {
116
120
await serviceConnection.serviceManager.onServiceAvailable;
117
121
122
+ if (serviceConnection.serviceManager.connectedApp? .isFlutterAppNow ??
123
+ false ) {
124
+ final impellerEnabledResponse = await serviceConnection.serviceManager
125
+ .callServiceExtensionOnMainIsolate (
126
+ registrations.isImpellerEnabled,
127
+ );
128
+ _impellerEnabled = impellerEnabledResponse.json? ['enabled' ] == true ;
129
+ } else {
130
+ _impellerEnabled = false ;
131
+ }
132
+
118
133
enhanceTracingController.init ();
119
134
120
135
// Listen for Flutter.Frame events with frame timing data.
0 commit comments