public static void LogProcessActiveFileDocument(CountLogAggregator <object> logAggregator, Guid _, bool processed) { if (processed) { logAggregator.IncreaseCount(ActiveFileProcessDocument); } else { logAggregator.IncreaseCount(ActiveFileProcessDocumentCancellation); } }
public static void LogProcessProject(CountLogAggregator <object> logAggregator, Guid projectId, bool processed) { if (processed) { logAggregator.IncreaseCount(ProcessProject); } else { logAggregator.IncreaseCount(ProcessProjectCancellation); } logAggregator.IncreaseCount(ValueTuple.Create(ProcessProject, projectId)); }
public static void LogWorkItemEnqueue( CountLogAggregator <object> 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 LogProcessProjectNotExist(CountLogAggregator <object> logAggregator) => logAggregator.IncreaseCount(ProjectNotExist);
public static void LogProcessOpenDocument(CountLogAggregator <object> logAggregator, Guid documentId) { logAggregator.IncreaseCount(OpenDocument); logAggregator.IncreaseCount(ValueTuple.Create(OpenDocument, documentId)); }
public static void LogResetStates(CountLogAggregator <object> logAggregator) => logAggregator.IncreaseCount(ResetStates);
public static void LogHigherPriority(CountLogAggregator <object> logAggregator, Guid documentId) { logAggregator.IncreaseCount(HigherPriority); logAggregator.IncreaseCount(ValueTuple.Create(HigherPriority, documentId)); }
public static void LogWorkItemEnqueue(CountLogAggregator <object> logAggregator, ProjectId _) => logAggregator.IncreaseCount(ProjectEnqueue);
public static void LogActiveFileEnqueue(CountLogAggregator <object> logAggregator) => logAggregator.IncreaseCount(ActiveFileEnqueue);
public static void LogGlobalOperation(CountLogAggregator <object> logAggregator) => logAggregator.IncreaseCount(GlobalOperation);
public static void LogWorkspaceEvent(CountLogAggregator <WorkspaceChangeKind> logAggregator, WorkspaceChangeKind kind) => logAggregator.IncreaseCount(kind);