From 6e47b8de1caefba522a33f4406cb1fefec2a5304 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 8 Apr 2019 11:48:14 -0700 Subject: [PATCH] fix event name for now, send working MB for *nix platforms --- src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs b/src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs index f983cd19c..3658e4755 100644 --- a/src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs +++ b/src/Analysis/Ast/Impl/Analyzer/PythonAnalyzerSession.cs @@ -165,18 +165,21 @@ private void SendTelemetry(double elapsed, int originalRemaining, int remaining, double privateMB; double peakPagedMB; + double workingMB; using (var proc = Process.GetCurrentProcess()) { privateMB = proc.PrivateMemorySize64 / 1e+6; peakPagedMB = proc.PeakPagedMemorySize64 / 1e+6; + workingMB = proc.WorkingSet64 / 1e+6; } var e = new TelemetryEvent { - EventName = "analysis_complete", + EventName = "python_language_server/analysis_complete", // TODO: Move this common prefix into Core. }; e.Measurements["privateMB"] = privateMB; e.Measurements["peakPagedMB"] = peakPagedMB; + e.Measurements["workingMB"] = workingMB; e.Measurements["elapsedMs"] = elapsed; e.Measurements["entries"] = originalRemaining; e.Measurements["version"] = version;