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

Unified Diff: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java

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 | « no previous file | pkg/analyzer/bin/analyzer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java
diff --git a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java
index fb351358b26d3fa909a7c389eb7e499119748c66..f7742d49eb2262b0d5d269139169bdf228046197 100644
--- a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java
+++ b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java
@@ -181,12 +181,20 @@ public class AnalyzerMain {
if (options.getPerf()) {
long totalTime = System.currentTimeMillis() - startTime;
- System.out.println("scan:" + PerformanceStatistics.scan.getResult());
- System.out.println("parse:" + PerformanceStatistics.parse.getResult());
- System.out.println("resolve:" + PerformanceStatistics.resolve.getResult());
- System.out.println("errors:" + PerformanceStatistics.errors.getResult());
- System.out.println("hints:" + PerformanceStatistics.hints.getResult());
- System.out.println("angular:" + PerformanceStatistics.angular.getResult());
+ long scanTime = PerformanceStatistics.scan.getResult();
+ long parseTime = PerformanceStatistics.parse.getResult();
+ long resolveTime = PerformanceStatistics.resolve.getResult();
+ long errorsTime = PerformanceStatistics.errors.getResult();
+ long hintsTime = PerformanceStatistics.hints.getResult();
+ long angularTime = PerformanceStatistics.angular.getResult();
+ System.out.println("scan:" + scanTime);
+ System.out.println("parse:" + parseTime);
+ System.out.println("resolve:" + resolveTime);
+ System.out.println("errors:" + errorsTime);
+ System.out.println("hints:" + hintsTime);
+ System.out.println("angular:" + angularTime);
+ System.out.println("other:"
+ + (totalTime - (scanTime + parseTime + resolveTime + errorsTime + hintsTime + angularTime)));
System.out.println("total:" + totalTime);
}
« no previous file with comments | « no previous file | pkg/analyzer/bin/analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698