You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/performance/webassembly-event-pipe-diagnostics.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,42 +26,6 @@ Install the [.NET WebAssembly build tools](xref:blazor/tooling/webassembly#net-w
26
26
dotnet workload install wasm-tools
27
27
```
28
28
29
-
## EventPipe profiler
30
-
31
-
[EventPipe](/dotnet/core/diagnostics/eventpipe) is a runtime component used to collect tracing data, similar to [ETW](/windows/win32/etw/event-tracing-portal) and [perf_events](https://wikipedia.org/wiki/Perf_%28Linux%29).
32
-
33
-
Collect CPU counters for 60 seconds with `collectCpuSamples(durationSeconds)`:
* Browser developer tools: Download the `.json` output file, open the file in Visual Studio, and find the expected classes.
44
-
*[`dotnet-gcdump` (`collect`/convert` options)](/dotnet/core/diagnostics/dotnet-gcdump): To view the captured GC dump files, see [View the GC dump captured from dotnet-gcdump](/dotnet/core/diagnostics/dotnet-gcdump#view-the-gc-dump-captured-from-dotnet-gcdump).
45
-
46
-
Collect a GC (Garbage Collector) dump of the live .NET process with `collectGcDump`:
47
-
48
-
```javascript
49
-
globalThis.getDotnetRuntime(0).collectGcDump();
50
-
```
51
-
52
-
## Counters trace
53
-
54
-
Manual testing:
55
-
56
-
* Browser developer tools: Download the `.json` output file, open the file in Visual Studio, and find the expected counters.
57
-
*[`dotnet-counters collect`](/dotnet/core/diagnostics/dotnet-counters): Open the `.csv`/`.json` output file in Visual Studio and find the expected counters.
58
-
59
-
Collect diagnostic counters for 60 seconds with `collectPerfCounters(durationSeconds)`:
Parse and validate NetTrace (`.nettrace`) messages using the .NET Core Diagnostics Client Library:
@@ -103,6 +67,42 @@ Alternatively, enable features when the app is built with the .NET CLI. The foll
103
67
104
68
The [`Timing-Allow-Origin` HTTP header](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Timing-Allow-Origin) allows for more precise time measurements.
105
69
70
+
## EventPipe profiler
71
+
72
+
[EventPipe](/dotnet/core/diagnostics/eventpipe) is a runtime component used to collect tracing data, similar to [ETW](/windows/win32/etw/event-tracing-portal) and [perf_events](https://wikipedia.org/wiki/Perf_%28Linux%29).
73
+
74
+
Collect CPU counters for 60 seconds with `collectCpuSamples(durationSeconds)`:
To view the trace, see [Use EventPipe to trace your .NET application](/dotnet/core/diagnostics/eventpipe#use-eventpipe-to-trace-your-net-application).
81
+
82
+
## GC (Garbage Collector) dumps
83
+
84
+
The [`dotnet-gcdump` (`collect`/convert` options)](/dotnet/core/diagnostics/dotnet-gcdump) global tool collects GC (Garbage Collector) dumps of live .NET processes using [EventPipe](/dotnet/core/diagnostics/eventpipe).
85
+
86
+
Collect a GC (Garbage Collector) dump of the live .NET process with `collectGcDump`:
87
+
88
+
```javascript
89
+
globalThis.getDotnetRuntime(0).collectGcDump();
90
+
```
91
+
92
+
To view the captured GC dump, see [View the GC dump captured from dotnet-gcdump](/dotnet/core/diagnostics/dotnet-gcdump#view-the-gc-dump-captured-from-dotnet-gcdump).
93
+
94
+
## Counters trace
95
+
96
+
[`dotnet-counters collect`](/dotnet/core/diagnostics/dotnet-counters) is a performance monitoring tool for ad-hoc health monitoring and first-level performance investigation.
97
+
98
+
Collect diagnostic counters for 60 seconds with `collectPerfCounters(durationSeconds)`:
0 commit comments