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