Index: pkg/analysis_server/lib/src/domain_analysis.dart |
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart |
index eb75faacdb19bf845e022a1e7a51a6cba44a99f1..2dd483b6c873afff7c589d171b4867ff07787c76 100644 |
--- a/pkg/analysis_server/lib/src/domain_analysis.dart |
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart |
@@ -248,6 +248,8 @@ class AnalysisDomainHandler extends AbstractRequestHandler { |
* Implement the 'analysis.reanalyze' request. |
*/ |
Response reanalyze(Request request) { |
+ server.options.analytics?.sendEvent('analysis', 'reanalyze'); |
+ |
AnalysisReanalyzeParams params = |
new AnalysisReanalyzeParams.fromRequest(request); |
List<String> roots = params.roots; |
@@ -284,6 +286,10 @@ class AnalysisDomainHandler extends AbstractRequestHandler { |
var params = new AnalysisSetAnalysisRootsParams.fromRequest(request); |
List<String> includedPathList = params.included; |
List<String> excludedPathList = params.excluded; |
+ |
+ server.options.analytics?.sendEvent('analysis', 'setAnalysisRoots', |
+ value: includedPathList.length); |
+ |
// validate |
for (String path in includedPathList) { |
if (!server.isValidFilePath(path)) { |