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 | 4 |
5 library server.performance.local; | 5 library server.performance.local; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/protocol/protocol_generated.dart'; | 9 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 10 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
10 | 11 |
11 import 'benchmark_scenario.dart'; | 12 import 'benchmark_scenario.dart'; |
12 import 'memory_tests.dart'; | 13 import 'memory_tests.dart'; |
13 | 14 |
14 main(List<String> args) async { | 15 main(List<String> args) async { |
15 int length = args.length; | 16 int length = args.length; |
16 if (length < 1) { | 17 if (length < 1) { |
17 print('Usage: dart benchmark_local.dart path_to_flutter_checkout' | 18 print('Usage: dart benchmark_local.dart path_to_flutter_checkout' |
18 ' [benchmark_id]'); | 19 ' [benchmark_id]'); |
19 return; | 20 return; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 209 |
209 PathHolder({String flutterPath}) { | 210 PathHolder({String flutterPath}) { |
210 exampleHelloWorld = '$flutterPath/examples/hello_world'; | 211 exampleHelloWorld = '$flutterPath/examples/hello_world'; |
211 exampleGallery = '$flutterPath/examples/flutter_gallery'; | 212 exampleGallery = '$flutterPath/examples/flutter_gallery'; |
212 exampleStocks = '$flutterPath/examples/stocks'; | 213 exampleStocks = '$flutterPath/examples/stocks'; |
213 packageFlutter = '$flutterPath/packages/flutter'; | 214 packageFlutter = '$flutterPath/packages/flutter'; |
214 packageMarkdown = '$flutterPath/packages/flutter_markdown'; | 215 packageMarkdown = '$flutterPath/packages/flutter_markdown'; |
215 packageSprites = '$flutterPath/packages/flutter_sprites'; | 216 packageSprites = '$flutterPath/packages/flutter_sprites'; |
216 } | 217 } |
217 } | 218 } |
OLD | NEW |