Fix sample code to actually print string name of the CLR events (#728)
authorSung Yoon Whang <suwhang@microsoft.com>
Fri, 3 Jan 2020 20:15:19 +0000 (12:15 -0800)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2020 20:15:19 +0000 (12:15 -0800)
documentation/design-docs/diagnostics-client-library.md

index b19c8b3d8f2af3e34485cfc30f99137d375c9178..c4de878eb4939e05fe2964ff74961b73406d1c90 100644 (file)
@@ -41,7 +41,7 @@ public void PrintRuntimeGCEvents(int processId)
     {
         var source = new EventPipeEventSource(session.EventStream);
 
-        source.Dynamic.All += (TraceEvent obj) => {
+        source.Clr.All += (TraceEvent obj) => {
             Console.WriteLine(obj.EventName);
         }
         try