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

Unified Diff: pkg/analyzer_cli/lib/src/perf_report.dart

Issue 1806263004: add --x-package-warnings-prefix option to dartanalyzer (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: oops, check in all the test files Created 4 years, 9 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 | « pkg/analyzer_cli/lib/src/options.dart ('k') | pkg/analyzer_cli/test/all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
};
« no previous file with comments | « pkg/analyzer_cli/lib/src/options.dart ('k') | pkg/analyzer_cli/test/all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698