Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: pkg/compiler/lib/src/dart2js_stress.dart

Issue 693183006: Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/dart2js_profile_many.dart ('k') | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js_stress.dart
diff --git a/pkg/compiler/lib/src/dart2js_stress.dart b/pkg/compiler/lib/src/dart2js_stress.dart
deleted file mode 100644
index fce57f239eb51f5666d82f29fd0a1ccbb33cf4cd..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/dart2js_stress.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library dart2js.stress;
-import "dart2js.dart" as dart2js;
-
-const ITERATIONS_FLAG_PREFIX = "--iterations=";
-void main(List<String> args) {
- print("Reminder: for best performance, "
- "dart2js should be run with the VM flag --heap_growth_rate=512");
- Stopwatch sw = new Stopwatch();
- int count = 0;
- int maxCount = null;
- if (args.isNotEmpty && args[0].startsWith(ITERATIONS_FLAG_PREFIX)) {
- maxCount = int.parse(args[0].substring(ITERATIONS_FLAG_PREFIX.length));
- args = args.sublist(1);
- }
- if (maxCount == null) {
- print("Running indefinitely.\n"
- "Use '$ITERATIONS_FLAG_PREFIX<count>' to set a repetition count"
- " (as first flag).");
- }
- args = ["--suppress-warnings", "--suppress-hints"]..addAll(args);
- void iterate() {
- count++;
- sw.reset();
- sw.start();
- dart2js.internalMain(args)
- .then((_) {
- print("$count: ${sw.elapsedMilliseconds}ms");
- })
- .then((_) {
- if (maxCount == null || count < maxCount) {
- iterate();
- }
- });
- }
- iterate();
-}
« no previous file with comments | « pkg/compiler/lib/src/dart2js_profile_many.dart ('k') | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698