Index: pkg/analyzer_cli/lib/src/perf_report.dart |
diff --git a/pkg/analyzer_cli/lib/src/perf_report.dart b/pkg/analyzer_cli/lib/src/perf_report.dart |
index 208e56012c1c20103162e787c15db74fe9b83a79..f92ae9abd6c84e61ce5fa27a4e4e42911f692efd 100644 |
--- a/pkg/analyzer_cli/lib/src/perf_report.dart |
+++ b/pkg/analyzer_cli/lib/src/perf_report.dart |
@@ -10,6 +10,7 @@ import 'dart:io' show File, Platform; |
import 'package:analyzer/src/generated/utilities_general.dart' |
show PerformanceTag; |
import 'package:analyzer/task/model.dart' show AnalysisTask; |
+import 'package:analyzer_cli/src/error_formatter.dart'; |
import 'package:analyzer_cli/src/options.dart' show CommandLineOptions; |
const _JSON = const JsonEncoder.withIndent(" "); |
@@ -39,7 +40,8 @@ String _osType = () { |
} |
}(); |
-String makePerfReport(int startTime, int endTime, CommandLineOptions options) { |
+String makePerfReport(int startTime, int endTime, CommandLineOptions options, |
+ int analyzedFileCount, AnalysisStats stats) { |
int totalTime = endTime - startTime; |
int otherTime = totalTime; |
@@ -53,6 +55,7 @@ String makePerfReport(int startTime, int endTime, CommandLineOptions options) { |
'dartSdkPath': options.dartSdkPath, |
'strongMode': options.strongMode, |
'showPackageWarnings': options.showPackageWarnings, |
+ 'showPackageWarningsPrefix': options.showPackageWarningsPrefix, |
'showSdkWarnings': options.showSdkWarnings, |
'definedVariables': options.definedVariables, |
'packageRootPath': options.packageRootPath, |
@@ -89,6 +92,9 @@ String makePerfReport(int startTime, int endTime, CommandLineOptions options) { |
'options': optionsJson, |
'totalElapsedTime': totalTime, |
'totalTaskTime': totalTaskTime, |
+ 'analyzedFiles': analyzedFileCount, |
+ 'generatedDiagnostics': stats.unfilteredCount, |
+ 'reportedDiagnostics': stats.filteredCount, |
'performanceTags': perfTagsJson, |
'tasks': taskRows.map((r) => r.toJson()).toList(), |
}; |