public static void LogAnalyzerCrashCount(DiagnosticAnalyzer analyzer, Exception ex, LogAggregator logAggregator, ProjectId projectId) { if (logAggregator == null || analyzer == null || ex == null || ex is OperationCanceledException) { return; } // TODO: once we create description manager, pass that into here. bool telemetry = DiagnosticAnalyzerLogger.AllowsTelemetry(null, analyzer, projectId); var tuple = ValueTuple.Create(telemetry, analyzer.GetType(), ex.GetType()); logAggregator.IncreaseCount(tuple); }
internal static void LogTypeImportCompletionTimeout() => s_logAggregator.IncreaseCount((int)ActionInfo.TypeImportCompletionTimeoutCount);
public static void LogProcessProject(LogAggregator logAggregator, Guid projectId, bool processed) { if (processed) { logAggregator.IncreaseCount(ProcessProject); } else { logAggregator.IncreaseCount(ProcessProjectCancellation); } logAggregator.IncreaseCount(ValueTuple.Create(ProcessProject, projectId)); }
public static void LogProcessDocument(LogAggregator logAggregator, Guid documentId, bool processed) { if (processed) { logAggregator.IncreaseCount(ProcessDocument); } else { logAggregator.IncreaseCount(ProcessDocumentCancellation); } logAggregator.IncreaseCount(ValueTuple.Create(ProcessDocument, documentId)); }
public static void LogProcessOpenDocument(LogAggregator logAggregator, Guid documentId) { logAggregator.IncreaseCount(OpenDocument); logAggregator.IncreaseCount(ValueTuple.Create(OpenDocument, documentId)); }
public static void LogHigherPriority(LogAggregator logAggregator, Guid documentId) { logAggregator.IncreaseCount(HigherPriority); logAggregator.IncreaseCount(ValueTuple.Create(HigherPriority, documentId)); }
public static void LogWorkItemEnqueue(LogAggregator logAggregator, ProjectId projectId) { logAggregator.IncreaseCount(ProjectEnqueue); }
public static void LogGlobalOperation(LogAggregator logAggregator) { logAggregator.IncreaseCount(GlobalOperation); }
public static void LogProcessProjectNotExist(LogAggregator logAggregator) { logAggregator.IncreaseCount(ProjectNotExist); }
public static void LogProcessDocumentNotExist(LogAggregator logAggregator) { logAggregator.IncreaseCount(DocumentNotExist); }
internal static void LogSessionWithTypeImportCompletionEnabled() => s_logAggregator.IncreaseCount((int)ActionInfo.SessionWithTypeImportCompletionEnabled);
internal static void LogTypeImportCompletionCacheMiss() => s_logAggregator.IncreaseCount((int)ActionInfo.TypeImportCompletionCacheMissCount);
internal static void LogCommitWithTargetTypeCompletionExperimentEnabled() => s_logAggregator.IncreaseCount((int)ActionInfo.CommitWithTargetTypeCompletionExperimentEnabled);
public static void UseExistingPartialProjectState() { s_logAggregator.IncreaseCount(nameof(UseExistingPartialProjectState)); }
public static void LogWorkspaceEvent(LogAggregator logAggregator, int kind) => logAggregator.IncreaseCount(kind);
public static void LogWorkspaceEvent(LogAggregator logAggregator, int kind) { logAggregator.IncreaseCount(kind); }
public static void LogGlobalOperation(LogAggregator logAggregator) => logAggregator.IncreaseCount(GlobalOperation);
public static void LogActiveFileEnqueue(LogAggregator logAggregator) { logAggregator.IncreaseCount(ActiveFileEnqueue); }
public static void LogActiveFileEnqueue(LogAggregator logAggregator) => logAggregator.IncreaseCount(ActiveFileEnqueue);
public static void LogWorkItemEnqueue( LogAggregator logAggregator, string language, DocumentId documentId, InvocationReasons reasons, bool lowPriority, SyntaxPath activeMember, bool added) { logAggregator.IncreaseCount(language); logAggregator.IncreaseCount(added ? NewWorkItem : UpdateWorkItem); if (documentId != null) { logAggregator.IncreaseCount(activeMember == null ? TopLevel : MemberLevel); if (lowPriority) { logAggregator.IncreaseCount(LowerPriority); logAggregator.IncreaseCount(ValueTuple.Create(LowerPriority, documentId.Id)); } } foreach (var reason in reasons) { logAggregator.IncreaseCount(reason); } }
public static void LogWorkItemEnqueue(LogAggregator logAggregator, ProjectId _) => logAggregator.IncreaseCount(ProjectEnqueue);
public static void LogResetStates(LogAggregator logAggregator) { logAggregator.IncreaseCount(ResetStates); }
public static void LogProcessActiveFileDocument(LogAggregator logAggregator, Guid documentId, bool processed) { if (processed) { logAggregator.IncreaseCount(ActiveFileProcessDocument); } else { logAggregator.IncreaseCount(ActiveFileProcessDocumentCancellation); } }
public static void LogResetStates(LogAggregator logAggregator) => logAggregator.IncreaseCount(ResetStates);
public static void LogProcessCloseDocument(LogAggregator logAggregator, Guid documentId) { logAggregator.IncreaseCount(CloseDocument); logAggregator.IncreaseCount(ValueTuple.Create(CloseDocument, documentId)); }
internal static void LogChangeSignatureDialogLaunched() => s_logAggregator.IncreaseCount((int)ActionInfo.ChangeSignatureDialogLaunched);