diff --git a/DotnetEventsViewer/Pages/Home.razor b/DotnetEventsViewer/Pages/Home.razor index 47fa9bc..444517b 100644 --- a/DotnetEventsViewer/Pages/Home.razor +++ b/DotnetEventsViewer/Pages/Home.razor @@ -49,6 +49,30 @@ +

Collect events with dotnet-trace

+ +

+ 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. +

+ +

Collect allocation events

+ +
dotnet-trace collect --clrevents gc --clreventlevel verbose --process-id $PID
+ +

Collect CPU samples

+ +
dotnet-trace collect --profile cpu-sampling --process-id $PID
+ +

Collect contention events

+ +
dotnet-trace collect --clrevents contention --process-id $PID
+ +

Collect wait events

+ +
dotnet-trace collect --clrevents waithandle --clreventlevel verbose --process-id $PID
+ + @code { private int _progressPercent;