4 instantiations of RunTimer
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorTimerExtensions.cs (4)
22return new RunTimer(t => eventSource.StopGeneratorDriverRunTime(t.Ticks, id)); 26return new RunTimer(); 37return new RunTimer(t => eventSource.StopSingleGeneratorRunTime(type.FullName!, type.Assembly.Location, t.Ticks, id), adjustRunTime); 41return new RunTimer(adjustRunTime);
4 references to RunTimer
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorDriver.cs (2)
222using var timer = CodeAnalysisEventSource.Log.CreateGeneratorDriverRunTimer(); 320using var generatorTimer = CodeAnalysisEventSource.Log.CreateSingleGeneratorRunTimer(state.Generators[i], (t) => t.Add(syntaxStoreBuilder.GetRuntimeAdjustment(stateBuilder[i].InputNodes)));
SourceGeneration\GeneratorTimerExtensions.cs (2)
16public static RunTimer CreateGeneratorDriverRunTimer(this CodeAnalysisEventSource eventSource) 30public static RunTimer CreateSingleGeneratorRunTimer(this CodeAnalysisEventSource eventSource, ISourceGenerator generator, Func<TimeSpan, TimeSpan> adjustRunTime)