| 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; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'benchmark_scenario.dart'; | 7 import 'benchmark_scenario.dart'; |
| 10 import 'memory_tests.dart'; | 8 import 'memory_tests.dart'; |
| 11 | 9 |
| 12 main(List<String> args) async { | 10 main(List<String> args) async { |
| 13 int length = args.length; | 11 int length = args.length; |
| 14 if (length < 1) { | 12 if (length < 1) { |
| 15 print( | 13 print( |
| 16 'Usage: dart benchmark_local.dart path_to_np8080 (an example ngdart proj
ect)' | 14 'Usage: dart benchmark_local.dart path_to_np8080 (an example ngdart proj
ect)' |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 String editorHtml; | 106 String editorHtml; |
| 109 String editorDart; | 107 String editorDart; |
| 110 String packageNp8080; | 108 String packageNp8080; |
| 111 | 109 |
| 112 PathHolder({String projectPath}) { | 110 PathHolder({String projectPath}) { |
| 113 editorHtml = '$projectPath/lib/editor/editor_component.html'; | 111 editorHtml = '$projectPath/lib/editor/editor_component.html'; |
| 114 editorDart = '$projectPath/lib/editor/editor_component.dart'; | 112 editorDart = '$projectPath/lib/editor/editor_component.dart'; |
| 115 packageNp8080 = projectPath; | 113 packageNp8080 = projectPath; |
| 116 } | 114 } |
| 117 } | 115 } |
| OLD | NEW |