Skip to content

Commit

Permalink
Add dotnet-trace examples on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed Sep 20, 2024
1 parent 06b80c8 commit 5dda54e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions DotnetEventsViewer/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@
</ChildContent>
</FluentInputFile>

<h2 style="margin-top: 8px">Collect events with dotnet-trace</h2>

<p>
Here are a few examples about how to collect the most common EventPipe events. These commands will generate a
nettrace file that you can drop up there.
</p>

<h3>Collect allocation events</h3>

<pre><code>dotnet-trace collect --clrevents gc --clreventlevel verbose --process-id $PID</code></pre>

<h3>Collect CPU samples</h3>

<pre><code>dotnet-trace collect --profile cpu-sampling --process-id $PID</code></pre>

<h3>Collect contention events</h3>

<pre><code>dotnet-trace collect --clrevents contention --process-id $PID</code></pre>

<h3>Collect wait events</h3>

<pre><code>dotnet-trace collect --clrevents waithandle --clreventlevel verbose --process-id $PID</code></pre>


@code {
private int _progressPercent;

Expand Down

0 comments on commit 5dda54e

Please sign in to comment.