Unconditionally enable Dart profiling on for all devices and platforms. (#7159)

It is not enabled by default in the VM because applications not launched via the tools may try to connect with the debugger. This causes the debugger and the IDE to hang on Mac.
This commit is contained in:
Chinmay Garde
2016-12-05 13:48:41 -08:00
committed by GitHub
parent 568a6e1e65
commit 4efb428254
4 changed files with 4 additions and 2 deletions

View File

@@ -328,6 +328,7 @@ class AndroidDevice extends Device {
'-a', 'android.intent.action.RUN',
'-f', '0x20000000', // FLAG_ACTIVITY_SINGLE_TOP
'--ez', 'enable-background-compilation', 'true',
'--ez', 'enable-dart-profiling', 'true',
]);
if (traceStartup)

View File

@@ -214,7 +214,7 @@ class IOSDevice extends Device {
}
// Step 3: Attempt to install the application on the device.
List<String> launchArguments = <String>[];
List<String> launchArguments = <String>["--enable-dart-profiling"];
if (debuggingOptions.startPaused)
launchArguments.add("--start-paused");

View File

@@ -437,7 +437,7 @@ class IOSSimulator extends Device {
ProtocolDiscovery.kObservatoryService);
// Prepare launch arguments.
List<String> args = <String>[];
List<String> args = <String>["--enable-dart-profiling"];
if (!prebuiltApplication) {
args.addAll(<String>[

View File

@@ -65,6 +65,7 @@ Future<Process> _startProcess(String mainPath, { String packages, int observator
arguments.add('--disable-observatory');
}
arguments.addAll(<String>[
'--enable-dart-profiling',
'--non-interactive',
'--enable-checked-mode',
'--packages=$packages',