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
[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
32
33
-
* Manual testing
34
-
* Browser developer tools: Download the `.nettrace` output file, open the file in Visual Studio, and find the expected method calls.
35
-
*[`dotnet-trace`](/dotnet/core/diagnostics/dotnet-trace): Open the `.nettrace` output file in Visual Studio and find the expected method calls.
36
-
* Web-based testing
37
-
* Upload the file via HTTP.
38
-
* Parse and validate that the trace contains the expected method calls.
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.
45
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).
46
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
+
47
52
## Counters trace
48
53
49
54
Manual testing:
50
55
51
56
* Browser developer tools: Download the `.json` output file, open the file in Visual Studio, and find the expected counters.
52
57
*[`dotnet-counters collect`](/dotnet/core/diagnostics/dotnet-counters): Open the `.csv`/`.json` output file in Visual Studio and find the expected counters.
53
58
59
+
Collect diagnostic counters for 60 seconds with `collectPerfCounters(durationSeconds)`:
0 commit comments