| 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'; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 timings.add(new Duration(milliseconds: stopwatch.elapsed.inMilliseconds)); | 71 timings.add(new Duration(milliseconds: stopwatch.elapsed.inMilliseconds)); |
| 72 }); | 72 }); |
| 73 | 73 |
| 74 setAnalysisRoot(); | 74 setAnalysisRoot(); |
| 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 |