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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 | 7 |
10 import 'package:analysis_server/protocol/protocol_generated.dart'; | 8 import 'package:analysis_server/protocol/protocol_generated.dart'; |
11 import 'package:args/args.dart'; | 9 import 'package:args/args.dart'; |
12 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
13 | 11 |
14 import 'performance_tests.dart'; | 12 import 'performance_tests.dart'; |
15 | 13 |
16 /** | 14 /** |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 152 |
155 sendAnalysisSetPriorityFiles([priorityFile]); | 153 sendAnalysisSetPriorityFiles([priorityFile]); |
156 | 154 |
157 await analysisFinished; | 155 await analysisFinished; |
158 print('analysis completed in ${stopwatch.elapsed}'); | 156 print('analysis completed in ${stopwatch.elapsed}'); |
159 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); | 157 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); |
160 | 158 |
161 await shutdown(); | 159 await shutdown(); |
162 } | 160 } |
163 } | 161 } |
OLD | NEW |