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

Unified Diff: pkg/analyzer/bin/analyzer.dart

Issue 139403007: Add other time to perf report (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/bin/analyzer.dart
diff --git a/pkg/analyzer/bin/analyzer.dart b/pkg/analyzer/bin/analyzer.dart
index 8648221fe7fbb0f320361ce9a6092b83698023fb..2ce52a58da47951f64734f17ad17d17919705b34 100644
--- a/pkg/analyzer/bin/analyzer.dart
+++ b/pkg/analyzer/bin/analyzer.dart
@@ -33,14 +33,24 @@ void main(args) {
if (options.perf) {
int totalTime = JavaSystem.currentTimeMillis() - startTime;
- print("scan:${PerformanceStatistics.scan.result}");
- print("parse:${PerformanceStatistics.parse.result}");
- print("resolve:${PerformanceStatistics.resolve.result}");
- print("errors:${PerformanceStatistics.errors.result}");
- print("hints:${PerformanceStatistics.hints.result}");
- print("angular:${PerformanceStatistics.angular.result}");
- print("instanceof:${instanceOfTimer.elapsedMilliseconds}");
+ int scanTime = PerformanceStatistics.scan.result;
+ int parseTime = PerformanceStatistics.parse.result;
+ int resolveTime = PerformanceStatistics.resolve.result;
+ int errorsTime = PerformanceStatistics.errors.result;
+ int hintsTime = PerformanceStatistics.hints.result;
+ int angularTime = PerformanceStatistics.angular.result;
+ print("scan:$scanTime");
+ print("parse:$parseTime");
+ print("resolve:$resolveTime");
+ print("errors:$errorsTime");
+ print("hints:$hintsTime");
+ print("angular:$angularTime");
+ print("other:${totalTime
+ - (scanTime + parseTime + resolveTime + errorsTime + hintsTime
+ + angularTime)}}");
print("total:$totalTime");
+ print("");
+ print("Time spent in instanceof = ${instanceOfTimer.elapsedMilliseconds}");
}
exit(result.ordinal);
« no previous file with comments | « editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698