internal void RecordCommitted(long duration, bool noChanges, IAsyncCompletionCommitManager manager) { CommitManagerName = CompletionTelemetryHost.GetCommitManagerName(manager); CommitDuration = duration; NoChanges = noChanges; }
internal static string GetCommitManagerName(IAsyncCompletionCommitManager commitManager) => commitManager?.GetType().ToString() ?? string.Empty;
internal void RecordObtainingCommitManagerData(IAsyncCompletionCommitManager manager, long elapsedMilliseconds) { var name = CompletionTelemetryHost.GetCommitManagerName(manager); CommitManagerSetupDuration[name] = elapsedMilliseconds; }