1 instantiation of CodeAnalysisEventSource
Microsoft.CodeAnalysis (1)
CodeAnalysisEventSource.Compiler.cs (1)
13public static readonly CodeAnalysisEventSource Log = new CodeAnalysisEventSource();
14 references to CodeAnalysisEventSource
Microsoft.CodeAnalysis (14)
CodeAnalysisEventSource.Compiler.cs (1)
13public static readonly CodeAnalysisEventSource Log = new CodeAnalysisEventSource();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (3)
77CodeAnalysisEventSource.Log.CreateAssemblyLoadContext(fullDirectoryPath); 115CodeAnalysisEventSource.Log.DisposeAssemblyLoadContext(context.Directory); 119CodeAnalysisEventSource.Log.DisposeAssemblyLoadContextException(context.Directory, ex.ToString());
SourceGeneration\GeneratorDriver.cs (4)
222using var timer = CodeAnalysisEventSource.Log.CreateGeneratorDriverRunTimer(); 320using var generatorTimer = CodeAnalysisEventSource.Log.CreateSingleGeneratorRunTimer(state.Generators[i], (t) => t.Add(syntaxStoreBuilder.GetRuntimeAdjustment(stateBuilder[i].InputNodes))); 383if (CodeAnalysisEventSource.Log.IsEnabled()) 385CodeAnalysisEventSource.Log.GeneratorException(generator.GetGeneratorType().Name, e.ToString());
SourceGeneration\GeneratorTimerExtensions.cs (3)
10using static Microsoft.CodeAnalysis.CodeAnalysisEventSource; 16public static RunTimer CreateGeneratorDriverRunTimer(this CodeAnalysisEventSource eventSource) 30public static RunTimer CreateSingleGeneratorRunTimer(this CodeAnalysisEventSource eventSource, ISourceGenerator generator, Func<TimeSpan, TimeSpan> adjustRunTime)
SourceGeneration\Nodes\InputNode.cs (1)
124if (!CodeAnalysisEventSource.Log.IsEnabled())
SourceGeneration\Nodes\NodeExtensions.cs (2)
14if (CodeAnalysisEventSource.Log.IsEnabled()) 19CodeAnalysisEventSource.Log.NodeTransform(self.GetHashCode(),