Updating gc/gc-collect options to map PerfView flags. (#175)
authorJosé Rivero <jorive@microsoft.com>
Mon, 22 Apr 2019 23:12:50 +0000 (16:12 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2019 23:12:50 +0000 (16:12 -0700)
src/Tools/dotnet-trace/CommandLine/Commands/ProfilesCommandHandler.cs

index d0ea7cb0dafa22ebc1fa7acf3c5ffd5052308a11..fcce030c2ca2c52169d90566a2c06f253be2ed65 100644 (file)
@@ -52,14 +52,28 @@ namespace Microsoft.Diagnostics.Tools.Trace
                 "gc",
                 new Provider[] {
                     new Provider("Microsoft-DotNETCore-SampleProfiler"),
-                    new Provider("Microsoft-Windows-DotNETRuntime", (ulong)ClrTraceEventParser.Keywords.GC, EventLevel.Verbose),
+                    new Provider(
+                        name: "Microsoft-Windows-DotNETRuntime",
+                        keywords: (ulong)ClrTraceEventParser.Keywords.GC |
+                                  (ulong)ClrTraceEventParser.Keywords.GCHeapSurvivalAndMovement |
+                                  (ulong)ClrTraceEventParser.Keywords.Stack |
+                                  (ulong)ClrTraceEventParser.Keywords.Jit |
+                                  (ulong)ClrTraceEventParser.Keywords.StopEnumeration |
+                                  (ulong)ClrTraceEventParser.Keywords.SupressNGen |
+                                  (ulong)ClrTraceEventParser.Keywords.Loader |
+                                  (ulong)ClrTraceEventParser.Keywords.Exception,
+                        eventLevel: EventLevel.Verbose),
                 },
                 "Tracks allocation and collection performance."),
             new Profile(
                 "gc-collect",
                 new Provider[] {
                     new Provider("Microsoft-DotNETCore-SampleProfiler"),
-                    new Provider("Microsoft-Windows-DotNETRuntime", (ulong)ClrTraceEventParser.Keywords.GC, EventLevel.Informational),
+                    new Provider(
+                        name: "Microsoft-Windows-DotNETRuntime",
+                        keywords:   (ulong)ClrTraceEventParser.Keywords.GC |
+                                    (ulong)ClrTraceEventParser.Keywords.Exception,
+                        eventLevel: EventLevel.Informational),
                 },
                 "Tracks GC collection only at very low overhead."),