title: Why does tracing C# code in Linux fail when imported into speedscope?
body: <p><strong>BACKGROUND:</strong></p>
  <p>I have a bit of code which is running very slowly, so it was suggested that I profile the code to find out why.</p>
  <p>The following image shows Visual Studio Code running on Linux and I have used a few dotnet commands below to create the <code>trace.nettrace</code> and <code>trace.speedscope.json</code> files:</p>
  <p><a href="https://i.stack.imgur.com/QdDo5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QdDo5.png" alt="enter image description here" /></a></p>
  <p>I then try to import the <code>trace.speedscope.json</code> file into <a href="https://www.speedscope.app/" rel="nofollow noreferrer">https://www.speedscope.app/</a> and I get the following error:</p>
  <p><a href="https://i.stack.imgur.com/TX5dM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TX5dM.png" alt="enter image description here" /></a></p>
  <hr />
  <p><strong>COMMANDS:</strong></p>
  <p>I used the following page as a guide to create the trace speedscope files:</p>
  <p><a href="https://github.com/jlfwong/speedscope/wiki/Importing-from-.NET-Core" rel="nofollow noreferrer">https://github.com/jlfwong/speedscope/wiki/Importing-from-.NET-Core</a></p>
  <p>To be specific, the command I used was:</p>
  <p><code>dotnet trace collect -p &lt;process id&gt; --format speedscope</code></p>
  <hr />
  <p><strong>EXAMPLE:</strong></p>
  <p>An example generated speedscope trace file can be seen here:</p>
  <p><a href="https://pastebin.com/4WW2tbiF" rel="nofollow noreferrer">https://pastebin.com/4WW2tbiF</a></p>
  <hr />
  <p><strong>QUESTION:</strong></p>
  <p>How do I create a speedscope trace file which works with <a href="https://www.speedscope.app/" rel="nofollow noreferrer">https://www.speedscope.app/</a> ?</p>