| 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:analysis_server/src/protocol.dart'; | 10 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
| 11 import 'package:args/args.dart'; | 11 import 'package:args/args.dart'; |
| 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 14 | 14 |
| 15 import '../../test/utils.dart'; | 15 import '../../test/utils.dart'; |
| 16 import 'performance_tests.dart'; | 16 import 'performance_tests.dart'; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Pass in the directory of the source to be analyzed as option `--source`, | 19 * Pass in the directory of the source to be analyzed as option `--source`, |
| 20 * optionally specify a priority file with `--priority` and the specific | 20 * optionally specify a priority file with `--priority` and the specific |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 sendAnalysisSetPriorityFiles([priorityFile]); | 147 sendAnalysisSetPriorityFiles([priorityFile]); |
| 148 | 148 |
| 149 return analysisFinished.then((_) { | 149 return analysisFinished.then((_) { |
| 150 print('analysis completed in ${stopwatch.elapsed}'); | 150 print('analysis completed in ${stopwatch.elapsed}'); |
| 151 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); | 151 metrics.forEach((Metric m) => print('${m.name} timings: ${m.timings}')); |
| 152 stopwatch.reset(); | 152 stopwatch.reset(); |
| 153 }); | 153 }); |
| 154 } | 154 } |
| 155 } | 155 } |
| OLD | NEW |