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

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

Issue 179123010: Add timing info for file IO into Dart based analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
Index: pkg/analyzer/bin/analyzer.dart
diff --git a/pkg/analyzer/bin/analyzer.dart b/pkg/analyzer/bin/analyzer.dart
index 19de8caa77e50b392c46c5b0930cff3d3c469b24..fcda509cd9aba21564adaa1a227807f6c7ca3cc8 100644
--- a/pkg/analyzer/bin/analyzer.dart
+++ b/pkg/analyzer/bin/analyzer.dart
@@ -33,12 +33,14 @@ void main(args) {
if (options.perf) {
int totalTime = JavaSystem.currentTimeMillis() - startTime;
+ int ioTime = PerformanceStatistics.io.result;
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("io:$ioTime");
print("scan:$scanTime");
print("parse:$parseTime");
print("resolve:$resolveTime");
@@ -46,7 +48,7 @@ void main(args) {
print("hints:$hintsTime");
print("angular:$angularTime");
print("other:${totalTime
- - (scanTime + parseTime + resolveTime + errorsTime + hintsTime
+ - (ioTime + scanTime + parseTime + resolveTime + errorsTime + hintsTime
+ angularTime)}");
print("total:$totalTime");
print("");

Powered by Google App Engine
This is Rietveld 408576698