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

Side by Side Diff: pkg/analyzer/bin/analyzer.dart

Issue 186153005: New analzyer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use meaningful name instead of '_' in predicate. Created 6 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 2
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 /** The entry point for the analyzer. */ 7 /** The entry point for the analyzer. */
8 library analyzer; 8 library analyzer;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 print("scan:$scanTime"); 44 print("scan:$scanTime");
45 print("parse:$parseTime"); 45 print("parse:$parseTime");
46 print("resolve:$resolveTime"); 46 print("resolve:$resolveTime");
47 print("errors:$errorsTime"); 47 print("errors:$errorsTime");
48 print("hints:$hintsTime"); 48 print("hints:$hintsTime");
49 print("angular:$angularTime"); 49 print("angular:$angularTime");
50 print("other:${totalTime 50 print("other:${totalTime
51 - (ioTime + scanTime + parseTime + resolveTime + errorsTime + hintsTime 51 - (ioTime + scanTime + parseTime + resolveTime + errorsTime + hintsTime
52 + angularTime)}"); 52 + angularTime)}");
53 print("total:$totalTime"); 53 print("total:$totalTime");
54 print("");
55 print("Time spent in instanceof = ${instanceOfTimer.elapsedMilliseconds}") ;
56 } 54 }
57 exitCode = result.ordinal; 55 exitCode = result.ordinal;
58 } 56 }
59 } 57 }
60 58
61 ErrorSeverity _runAnalyzer(CommandLineOptions options) { 59 ErrorSeverity _runAnalyzer(CommandLineOptions options) {
62 if (!options.machineFormat) { 60 if (!options.machineFormat) {
63 stdout.writeln("Analyzing ${options.sourceFiles}..."); 61 stdout.writeln("Analyzing ${options.sourceFiles}...");
64 } 62 }
65 ErrorSeverity allResult = ErrorSeverity.NONE; 63 ErrorSeverity allResult = ErrorSeverity.NONE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon ds}ms'); 140 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon ds}ms');
143 } catch (e, stackTrace) { 141 } catch (e, stackTrace) {
144 stderr.writeln(e); 142 stderr.writeln(e);
145 stderr.writeln(stackTrace); 143 stderr.writeln(stackTrace);
146 stderr.writeln('>>> EOF STDERR'); 144 stderr.writeln('>>> EOF STDERR');
147 stdout.writeln('>>> TEST CRASH'); 145 stdout.writeln('>>> TEST CRASH');
148 } 146 }
149 }); 147 });
150 } 148 }
151 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698