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

Side by Side Diff: pkg/kernel/test/frontend_bench.dart

Issue 2756593004: Start unraveling circularities between analyzer and front_end/kernel. (Closed)
Patch Set: Created 3 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | pkg/kernel/test/reify/suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import 'dart:io'; 5 import 'dart:io';
6 import 'package:analyzer/src/context/cache.dart'; 6 import 'package:analyzer/src/context/cache.dart';
7 import 'package:analyzer/task/model.dart'; 7 import 'package:analyzer/task/model.dart';
8 import 'package:args/args.dart'; 8 import 'package:args/args.dart';
9 import 'package:kernel/analyzer/loader.dart'; 9 import 'package:analyzer/src/kernel/loader.dart';
10 import 'package:kernel/kernel.dart'; 10 import 'package:kernel/kernel.dart';
11 import 'package:package_config/discovery.dart'; 11 import 'package:package_config/discovery.dart';
12 12
13 ArgParser parser = new ArgParser() 13 ArgParser parser = new ArgParser()
14 ..addOption('sdk', 14 ..addOption('sdk',
15 help: 'Path to Dart SDK', valueHelp: 'path', defaultsTo: '/usr/lib/dart') 15 help: 'Path to Dart SDK', valueHelp: 'path', defaultsTo: '/usr/lib/dart')
16 ..addOption('packages', 16 ..addOption('packages',
17 abbr: 'p', 17 abbr: 'p',
18 help: 'Path to the packages folder or .packages file', 18 help: 'Path to the packages folder or .packages file',
19 valueHelp: 'path') 19 valueHelp: 'path')
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 .loadProgram(uri); 58 .loadProgram(uri);
59 59
60 CacheEntry.recomputedCounts.forEach((key, value) { 60 CacheEntry.recomputedCounts.forEach((key, value) {
61 print('Recomputed $key $value times'); 61 print('Recomputed $key $value times');
62 }); 62 });
63 63
64 AnalysisTask.stopwatchMap.forEach((key, Stopwatch watch) { 64 AnalysisTask.stopwatchMap.forEach((key, Stopwatch watch) {
65 print('$key took ${watch.elapsedMilliseconds} ms'); 65 print('$key took ${watch.elapsedMilliseconds} ms');
66 }); 66 });
67 } 67 }
OLDNEW
« no previous file with comments | « pkg/kernel/test/closures/suite.dart ('k') | pkg/kernel/test/reify/suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698