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

Unified Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 2963323002: Add analytics to analyzer-cli and analysis server. (Closed)
Patch Set: update from review comments Created 3 years, 5 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/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698