| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // VMOptions=--error_on_bad_type --error_on_bad_override | 4 // VMOptions=--error_on_bad_type --error_on_bad_override |
| 5 | 5 |
| 6 import 'dart:developer'; | 6 import 'dart:developer'; |
| 7 import 'package:observatory/service_io.dart'; | 7 import 'package:observatory/service_io.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 | 9 import 'service_test_common.dart'; |
| 10 import 'test_helper.dart'; | 10 import 'test_helper.dart'; |
| 11 | 11 |
| 12 primeDartTimeline() { | 12 primeDartTimeline() { |
| 13 while (true) { | 13 while (true) { |
| 14 Timeline.startSync('apple'); | 14 Timeline.startSync('apple'); |
| 15 Timeline.finishSync(); | 15 Timeline.finishSync(); |
| 16 debugger(); | 16 debugger(); |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Confirm that zero non-Dart events are added. | 105 // Confirm that zero non-Dart events are added. |
| 106 expect( | 106 expect( |
| 107 filterEvents(result['traceEvents'], isNotDartAndMetaData).length, | 107 filterEvents(result['traceEvents'], isNotDartAndMetaData).length, |
| 108 equals(0)); | 108 equals(0)); |
| 109 }, | 109 }, |
| 110 ]; | 110 ]; |
| 111 | 111 |
| 112 main(args) async => runIsolateTests(args, | 112 main(args) async => runIsolateTests(args, |
| 113 tests, | 113 tests, |
| 114 testeeConcurrent: primeDartTimeline); | 114 testeeConcurrent: primeDartTimeline); |
| OLD | NEW |