OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 server.performance.analysis.timing; | 5 library server.performance.analysis.timing; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:args/args.dart'; | 10 import 'package:args/args.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:test/test.dart'; |
12 | 12 |
13 import '../../test/utils.dart'; | 13 import '../../test/utils.dart'; |
14 import 'performance_tests.dart'; | 14 import 'performance_tests.dart'; |
15 | 15 |
16 /** | 16 /** |
17 * Pass in the directory of the source to be analyzed as option `--source`, | 17 * Pass in the directory of the source to be analyzed as option `--source`, |
18 * specify a priority file with `--priority` and an offset for completions | 18 * specify a priority file with `--priority` and an offset for completions |
19 * with a `--offset`. | 19 * with a `--offset`. |
20 */ | 20 */ |
21 main(List<String> arguments) { | 21 main(List<String> arguments) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 sendAnalysisSetPriorityFiles([priorityFile]); | 75 sendAnalysisSetPriorityFiles([priorityFile]); |
76 sendCompletionGetSuggestions(priorityFile, offset); | 76 sendCompletionGetSuggestions(priorityFile, offset); |
77 | 77 |
78 await analysisFinished; | 78 await analysisFinished; |
79 | 79 |
80 print('analysis completed in ${stopwatch.elapsed}'); | 80 print('analysis completed in ${stopwatch.elapsed}'); |
81 print('completion received at : $timings'); | 81 print('completion received at : $timings'); |
82 await shutdown(); | 82 await shutdown(); |
83 } | 83 } |
84 } | 84 } |
OLD | NEW |