Skip to content

Importing from .NET Core

Jamie Wong edited this page Oct 16, 2019 · 1 revision

.NET Core version 3 and higher supports creating trace profiles appropriate for speedscope. To do this install the trace tool.

dotnet tool install --global dotnet-trace

Once installed, a profile file can be created in two different ways.

  1. Specify the trace format at trace creation time
dotnet trace collect -p <process id> --format speedscope
  1. If a trace has already been created in the NetTrace format, it can be converted
dotnet trace convert --format speedscope <trace filename>

Once a properly formatted trace file exists, drop the resulting trace.speedscope.json into (https://www.speedscope.app/)

To view it offline, you'll need to install speedscope via npm:

npm install -g speedscope

Then you should be able to open it like so:

speedscope trace.speedscope.json