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

Side by Side Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2883633002: Extract PerformanceLogger from AnalysisDriver. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io' as io; 6 import 'dart:io' as io;
7 7
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/file_system/file_system.dart' as file_system; 9 import 'package:analyzer/file_system/file_system.dart' as file_system;
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 21 matching lines...) Expand all
32 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 32 import 'package:analyzer/src/summary/package_bundle_reader.dart';
33 import 'package:analyzer/src/summary/summary_sdk.dart' show SummaryBasedDartSdk; 33 import 'package:analyzer/src/summary/summary_sdk.dart' show SummaryBasedDartSdk;
34 import 'package:analyzer_cli/src/analyzer_impl.dart'; 34 import 'package:analyzer_cli/src/analyzer_impl.dart';
35 import 'package:analyzer_cli/src/batch_mode.dart'; 35 import 'package:analyzer_cli/src/batch_mode.dart';
36 import 'package:analyzer_cli/src/build_mode.dart'; 36 import 'package:analyzer_cli/src/build_mode.dart';
37 import 'package:analyzer_cli/src/error_formatter.dart'; 37 import 'package:analyzer_cli/src/error_formatter.dart';
38 import 'package:analyzer_cli/src/error_severity.dart'; 38 import 'package:analyzer_cli/src/error_severity.dart';
39 import 'package:analyzer_cli/src/options.dart'; 39 import 'package:analyzer_cli/src/options.dart';
40 import 'package:analyzer_cli/src/perf_report.dart'; 40 import 'package:analyzer_cli/src/perf_report.dart';
41 import 'package:analyzer_cli/starter.dart' show CommandLineStarter; 41 import 'package:analyzer_cli/starter.dart' show CommandLineStarter;
42 import 'package:front_end/src/base/performace_logger.dart';
42 import 'package:front_end/src/incremental/byte_store.dart'; 43 import 'package:front_end/src/incremental/byte_store.dart';
43 import 'package:linter/src/rules.dart' as linter; 44 import 'package:linter/src/rules.dart' as linter;
44 import 'package:package_config/discovery.dart' as pkg_discovery; 45 import 'package:package_config/discovery.dart' as pkg_discovery;
45 import 'package:package_config/packages.dart' show Packages; 46 import 'package:package_config/packages.dart' show Packages;
46 import 'package:package_config/packages_file.dart' as pkgfile show parse; 47 import 'package:package_config/packages_file.dart' as pkgfile show parse;
47 import 'package:package_config/src/packages_impl.dart' show MapPackages; 48 import 'package:package_config/src/packages_impl.dart' show MapPackages;
48 import 'package:path/path.dart' as path; 49 import 'package:path/path.dart' as path;
49 import 'package:plugin/manager.dart'; 50 import 'package:plugin/manager.dart';
50 import 'package:plugin/plugin.dart'; 51 import 'package:plugin/plugin.dart';
51 import 'package:yaml/yaml.dart'; 52 import 'package:yaml/yaml.dart';
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 for (var package in packages) { 889 for (var package in packages) {
889 var packageName = path.basename(package.path); 890 var packageName = path.basename(package.path);
890 var realPath = package.resolveSymbolicLinksSync(); 891 var realPath = package.resolveSymbolicLinksSync();
891 result[packageName] = [ 892 result[packageName] = [
892 PhysicalResourceProvider.INSTANCE.getFolder(realPath) 893 PhysicalResourceProvider.INSTANCE.getFolder(realPath)
893 ]; 894 ];
894 } 895 }
895 return result; 896 return result;
896 } 897 }
897 } 898 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698