Rename Crossgen2 dependency graph ETW event source (#37731)
authorSimon Nattress <nattress@gmail.com>
Thu, 11 Jun 2020 18:14:45 +0000 (11:14 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 18:14:45 +0000 (11:14 -0700)
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.

src/coreclr/src/tools/crossgen2/ILCompiler.DependencyAnalysisFramework/PerfEventSource.cs

index bfd79e1..6a30fe1 100644 (file)
@@ -10,7 +10,7 @@ using System.Diagnostics.Tracing;
 /// </summary>
 namespace ILCompiler.DependencyAnalysisFramework
 {
-    [EventSource(Name = "Microsoft-ILCompiler-Perf")]
+    [EventSource(Name = "Microsoft-ILCompiler-Graph-Perf")]
     public class PerfEventSource : EventSource
     {
         private PerfEventSource() { }