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

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/file_state.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) 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:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
11 import 'package:analyzer/error/listener.dart'; 11 import 'package:analyzer/error/listener.dart';
12 import 'package:analyzer/file_system/file_system.dart'; 12 import 'package:analyzer/file_system/file_system.dart';
13 import 'package:analyzer/src/dart/analysis/defined_names.dart'; 13 import 'package:analyzer/src/dart/analysis/defined_names.dart';
14 import 'package:analyzer/src/dart/analysis/driver.dart';
15 import 'package:analyzer/src/dart/analysis/referenced_names.dart'; 14 import 'package:analyzer/src/dart/analysis/referenced_names.dart';
16 import 'package:analyzer/src/dart/analysis/top_level_declaration.dart'; 15 import 'package:analyzer/src/dart/analysis/top_level_declaration.dart';
17 import 'package:analyzer/src/dart/scanner/reader.dart'; 16 import 'package:analyzer/src/dart/scanner/reader.dart';
18 import 'package:analyzer/src/dart/scanner/scanner.dart'; 17 import 'package:analyzer/src/dart/scanner/scanner.dart';
19 import 'package:analyzer/src/fasta/ast_builder.dart' as fasta; 18 import 'package:analyzer/src/fasta/ast_builder.dart' as fasta;
20 import 'package:analyzer/src/fasta/element_store.dart' as fasta; 19 import 'package:analyzer/src/fasta/element_store.dart' as fasta;
21 import 'package:analyzer/src/fasta/mock_element.dart' as fasta; 20 import 'package:analyzer/src/fasta/mock_element.dart' as fasta;
22 import 'package:analyzer/src/generated/engine.dart'; 21 import 'package:analyzer/src/generated/engine.dart';
23 import 'package:analyzer/src/generated/parser.dart'; 22 import 'package:analyzer/src/generated/parser.dart';
24 import 'package:analyzer/src/generated/source.dart'; 23 import 'package:analyzer/src/generated/source.dart';
25 import 'package:analyzer/src/generated/utilities_dart.dart'; 24 import 'package:analyzer/src/generated/utilities_dart.dart';
26 import 'package:analyzer/src/source/source_resource.dart'; 25 import 'package:analyzer/src/source/source_resource.dart';
27 import 'package:analyzer/src/summary/format.dart'; 26 import 'package:analyzer/src/summary/format.dart';
28 import 'package:analyzer/src/summary/idl.dart'; 27 import 'package:analyzer/src/summary/idl.dart';
29 import 'package:analyzer/src/summary/name_filter.dart'; 28 import 'package:analyzer/src/summary/name_filter.dart';
30 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 29 import 'package:analyzer/src/summary/package_bundle_reader.dart';
31 import 'package:analyzer/src/summary/summarize_ast.dart'; 30 import 'package:analyzer/src/summary/summarize_ast.dart';
32 import 'package:convert/convert.dart'; 31 import 'package:convert/convert.dart';
33 import 'package:crypto/crypto.dart'; 32 import 'package:crypto/crypto.dart';
34 import 'package:front_end/src/base/api_signature.dart'; 33 import 'package:front_end/src/base/api_signature.dart';
34 import 'package:front_end/src/base/performace_logger.dart';
35 import 'package:front_end/src/fasta/builder/builder.dart' as fasta; 35 import 'package:front_end/src/fasta/builder/builder.dart' as fasta;
36 import 'package:front_end/src/fasta/parser/parser.dart' as fasta; 36 import 'package:front_end/src/fasta/parser/parser.dart' as fasta;
37 import 'package:front_end/src/fasta/scanner.dart' as fasta; 37 import 'package:front_end/src/fasta/scanner.dart' as fasta;
38 import 'package:front_end/src/incremental/byte_store.dart'; 38 import 'package:front_end/src/incremental/byte_store.dart';
39 import 'package:meta/meta.dart'; 39 import 'package:meta/meta.dart';
40 40
41 /** 41 /**
42 * [FileContentOverlay] is used to temporary override content of files. 42 * [FileContentOverlay] is used to temporary override content of files.
43 */ 43 */
44 class FileContentOverlay { 44 class FileContentOverlay {
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 _FastaElementProxy operator [](fasta.Builder builder) => 926 _FastaElementProxy operator [](fasta.Builder builder) =>
927 _elements.putIfAbsent(builder, () => new _FastaElementProxy()); 927 _elements.putIfAbsent(builder, () => new _FastaElementProxy());
928 928
929 @override 929 @override
930 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 930 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
931 } 931 }
932 932
933 class _FastaInterfaceTypeProxy implements fasta.KernelInterfaceType { 933 class _FastaInterfaceTypeProxy implements fasta.KernelInterfaceType {
934 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 934 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
935 } 935 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698