OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test_helper; | 5 library test_helper; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'package:observatory/service_io.dart'; | 10 import 'package:observatory/service_io.dart'; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 var fullArgs = []; | 127 var fullArgs = []; |
128 if (pause_on_start) { | 128 if (pause_on_start) { |
129 fullArgs.add('--pause-isolates-on-start'); | 129 fullArgs.add('--pause-isolates-on-start'); |
130 } | 130 } |
131 if (pause_on_exit) { | 131 if (pause_on_exit) { |
132 fullArgs.add('--pause-isolates-on-exit'); | 132 fullArgs.add('--pause-isolates-on-exit'); |
133 } | 133 } |
134 if (pause_on_unhandled_exceptions) { | 134 if (pause_on_unhandled_exceptions) { |
135 fullArgs.add('--pause-isolates-on-unhandled-exceptions'); | 135 fullArgs.add('--pause-isolates-on-unhandled-exceptions'); |
136 } | 136 } |
| 137 fullArgs.add('--profiler'); |
137 if (extraArgs != null) { | 138 if (extraArgs != null) { |
138 fullArgs.addAll(extraArgs); | 139 fullArgs.addAll(extraArgs); |
139 } | 140 } |
140 | 141 |
141 fullArgs.addAll(Platform.executableArguments); | 142 fullArgs.addAll(Platform.executableArguments); |
142 if (!testeeControlsServer) { | 143 if (!testeeControlsServer) { |
143 fullArgs.add('--enable-vm-service:0'); | 144 fullArgs.add('--enable-vm-service:0'); |
144 } | 145 } |
145 fullArgs.addAll(args); | 146 fullArgs.addAll(args); |
146 | 147 |
(...skipping 16 matching lines...) Expand all Loading... |
163 if (pause_on_start) { | 164 if (pause_on_start) { |
164 dartFlags.add('--pause_isolates_on_start'); | 165 dartFlags.add('--pause_isolates_on_start'); |
165 fullArgs.add('--start-paused'); | 166 fullArgs.add('--start-paused'); |
166 } | 167 } |
167 if (pause_on_exit) { | 168 if (pause_on_exit) { |
168 dartFlags.add('--pause_isolates_on_exit'); | 169 dartFlags.add('--pause_isolates_on_exit'); |
169 } | 170 } |
170 if (pause_on_unhandled_exceptions) { | 171 if (pause_on_unhandled_exceptions) { |
171 dartFlags.add('--pause_isolates_on_unhandled_exceptions'); | 172 dartFlags.add('--pause_isolates_on_unhandled_exceptions'); |
172 } | 173 } |
| 174 dartFlags.add('--profiler'); |
173 // Override mirrors. | 175 // Override mirrors. |
174 dartFlags.add('--enable_mirrors=true'); | 176 dartFlags.add('--enable_mirrors=true'); |
175 if (extraArgs != null) { | 177 if (extraArgs != null) { |
176 fullArgs.addAll(extraArgs); | 178 fullArgs.addAll(extraArgs); |
177 } | 179 } |
178 | 180 |
179 fullArgs.addAll(Platform.executableArguments); | 181 fullArgs.addAll(Platform.executableArguments); |
180 if (!testeeControlsServer) { | 182 if (!testeeControlsServer) { |
181 fullArgs.add('--observatory-port=0'); | 183 fullArgs.add('--observatory-port=0'); |
182 } | 184 } |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 new _ServiceTesterRunner().run( | 481 new _ServiceTesterRunner().run( |
480 mainArgs: mainArgs, | 482 mainArgs: mainArgs, |
481 extraArgs: extraArgs, | 483 extraArgs: extraArgs, |
482 vmTests: tests, | 484 vmTests: tests, |
483 pause_on_start: pause_on_start, | 485 pause_on_start: pause_on_start, |
484 pause_on_exit: pause_on_exit, | 486 pause_on_exit: pause_on_exit, |
485 verbose_vm: verbose_vm, | 487 verbose_vm: verbose_vm, |
486 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); | 488 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); |
487 } | 489 } |
488 } | 490 } |
OLD | NEW |