SpeedScope handles only CPU samples, events are not supported (#661)
authorAdam Sitnik <adam.sitnik@gmail.com>
Thu, 5 Dec 2019 19:19:43 +0000 (20:19 +0100)
committerJohn Salem <josalem@microsoft.com>
Thu, 5 Dec 2019 19:19:43 +0000 (11:19 -0800)
src/Tools/dotnet-trace/TraceFileFormatConverter.cs

index 056d56bc8e6c71a838e0cffb7ad9a44ce61c9712..6b4d13451ae11f391cdbb1fb498fc9a2f29f2c10 100644 (file)
@@ -72,7 +72,10 @@ namespace Microsoft.Diagnostics.Tools.Trace
                     OnlyManagedCodeStacks = true // EventPipe currently only has managed code stacks.
                 };
 
-                var computer = new SampleProfilerThreadTimeComputer(eventLog, symbolReader);
+                var computer = new SampleProfilerThreadTimeComputer(eventLog, symbolReader)
+                {
+                    IncludeEventSourceEvents = false // SpeedScope handles only CPU samples, events are not supported
+                };
                 computer.GenerateThreadTimeStacks(stackSource);
 
                 SpeedScopeStackSourceWriter.WriteStackViewAsJson(stackSource, outputFilename);