4 instantiations of RunTimer
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorTimerExtensions.cs (4)
22
return new
RunTimer
(t => eventSource.StopGeneratorDriverRunTime(t.Ticks, id));
26
return new
RunTimer
();
37
return new
RunTimer
(t => eventSource.StopSingleGeneratorRunTime(type.FullName!, type.Assembly.Location, t.Ticks, id), adjustRunTime);
41
return new
RunTimer
(adjustRunTime);
4 references to RunTimer
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorDriver.cs (2)
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)));
SourceGeneration\GeneratorTimerExtensions.cs (2)
16
public static
RunTimer
CreateGeneratorDriverRunTimer(this CodeAnalysisEventSource eventSource)
30
public static
RunTimer
CreateSingleGeneratorRunTimer(this CodeAnalysisEventSource eventSource, ISourceGenerator generator, Func<TimeSpan, TimeSpan> adjustRunTime)