From: Simon Nattress Date: Thu, 11 Jun 2020 18:14:45 +0000 (-0700) Subject: Rename Crossgen2 dependency graph ETW event source (#37731) X-Git-Tag: submit/tizen/20210909.063632~7444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c78f333834dd4ad997c374a64243e8336eca5765;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Rename Crossgen2 dependency graph ETW event source (#37731) When crossgen2 is run with `Microsoft-ILCompiler-Perf` provider enabled, events are not named properly in PerfView (`Microsoft-ILCompiler-Perf/EventID(1)` instead of `Compilation/Start`) and an error event indicating multiple EventSource instances with the same GUID are enabled: ``` ERROR: Exception in Command Processing for EventSource Microsoft-ILCompiler-Perf: An instance of EventSource with Guid 607164a4-cacb-5f22-92fb-62a11541e285 already exists. ``` Name the dependency analysis EventSource `Microsoft-ILCompiler-Graph-Perf` to distinguish between the two. --- diff --git a/src/coreclr/src/tools/crossgen2/ILCompiler.DependencyAnalysisFramework/PerfEventSource.cs b/src/coreclr/src/tools/crossgen2/ILCompiler.DependencyAnalysisFramework/PerfEventSource.cs index bfd79e1..6a30fe1 100644 --- a/src/coreclr/src/tools/crossgen2/ILCompiler.DependencyAnalysisFramework/PerfEventSource.cs +++ b/src/coreclr/src/tools/crossgen2/ILCompiler.DependencyAnalysisFramework/PerfEventSource.cs @@ -10,7 +10,7 @@ using System.Diagnostics.Tracing; /// namespace ILCompiler.DependencyAnalysisFramework { - [EventSource(Name = "Microsoft-ILCompiler-Perf")] + [EventSource(Name = "Microsoft-ILCompiler-Graph-Perf")] public class PerfEventSource : EventSource { private PerfEventSource() { }