OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 int hintsTime = PerformanceStatistics.hints.result; | 40 int hintsTime = PerformanceStatistics.hints.result; |
41 int angularTime = PerformanceStatistics.angular.result; | 41 int angularTime = PerformanceStatistics.angular.result; |
42 print("scan:$scanTime"); | 42 print("scan:$scanTime"); |
43 print("parse:$parseTime"); | 43 print("parse:$parseTime"); |
44 print("resolve:$resolveTime"); | 44 print("resolve:$resolveTime"); |
45 print("errors:$errorsTime"); | 45 print("errors:$errorsTime"); |
46 print("hints:$hintsTime"); | 46 print("hints:$hintsTime"); |
47 print("angular:$angularTime"); | 47 print("angular:$angularTime"); |
48 print("other:${totalTime | 48 print("other:${totalTime |
49 - (scanTime + parseTime + resolveTime + errorsTime + hintsTime | 49 - (scanTime + parseTime + resolveTime + errorsTime + hintsTime |
50 + angularTime)}}"); | 50 + angularTime)}"); |
51 print("total:$totalTime"); | 51 print("total:$totalTime"); |
52 print(""); | 52 print(""); |
53 print("Time spent in instanceof = ${instanceOfTimer.elapsedMilliseconds}")
; | 53 print("Time spent in instanceof = ${instanceOfTimer.elapsedMilliseconds}")
; |
54 } | 54 } |
55 | 55 |
56 exit(result.ordinal); | 56 exit(result.ordinal); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 ErrorSeverity _runAnalyzer(CommandLineOptions options) { | 60 ErrorSeverity _runAnalyzer(CommandLineOptions options) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon
ds}ms'); | 141 stdout.writeln('>>> TEST $resultPassString ${stopwatch.elapsedMillisecon
ds}ms'); |
142 } catch (e, stackTrace) { | 142 } catch (e, stackTrace) { |
143 stderr.writeln(e); | 143 stderr.writeln(e); |
144 stderr.writeln(stackTrace); | 144 stderr.writeln(stackTrace); |
145 stderr.writeln('>>> EOF STDERR'); | 145 stderr.writeln('>>> EOF STDERR'); |
146 stdout.writeln('>>> TEST CRASH'); | 146 stdout.writeln('>>> TEST CRASH'); |
147 } | 147 } |
148 }); | 148 }); |
149 } | 149 } |
150 } | 150 } |
OLD | NEW |