Commit 4efb4282 authored by Chinmay Garde's avatar Chinmay Garde Committed by GitHub

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.
parent 568a6e1e
......@@ -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)
......
......@@ -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");
......
......@@ -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>[
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment