1 instantiation of GeneratorTelemetryKey
Microsoft.CodeAnalysis.Workspaces (1)
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
46
=> _generatorTelemetryKeys.GetValue(generator, g => new
GeneratorTelemetryKey
(g, getAnalyzerReference(g)));
5 references to GeneratorTelemetryKey
Microsoft.CodeAnalysis.Workspaces (5)
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (5)
37
/// Cache of the <see cref="
GeneratorTelemetryKey
"/> for a generator to avoid repeatedly reading version information from disk;
40
private readonly ConditionalWeakTable<ISourceGenerator,
GeneratorTelemetryKey
> _generatorTelemetryKeys = new();
42
private readonly StatisticLogAggregator<
GeneratorTelemetryKey
> _elapsedTimeByGenerator = new();
43
private readonly StatisticLogAggregator<
GeneratorTelemetryKey
> _producedFilesByGenerator = new();
45
private
GeneratorTelemetryKey
GetTelemetryKey(ISourceGenerator generator, Func<ISourceGenerator, AnalyzerReference> getAnalyzerReference)