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
-`cpu-sampling` — kernel CPU sampling (perf-based) via `Universal.Events/cpu`.
294
294
295
-
By default, a machine-wide trace will be collected. .NET Processes are discovered through their diagnostics ports, which are located under the `TMPDIR` environment variable when set and otherwise under `/tmp`.
296
-
297
-
If collecting events from all .NET Processes is undesired, `-n, --name <name>` or `-p|--process-id <PID>` can be used to specify a particular process.
295
+
A machine-wide trace will be collected. .NET Processes are discovered through their diagnostics ports, which are located under the `TMPDIR` environment variable when set and otherwise under `/tmp`.
298
296
299
297
### Prerequisites
300
298
@@ -318,10 +316,6 @@ dotnet-trace collect-linux
318
316
# Trace Collection
319
317
[-o|--output <trace-file-path>]
320
318
[--duration dd:hh:mm:ss]
321
-
322
-
# .NET Process Target (Optional)
323
-
[-n, --name <name>]
324
-
[-p|--process-id <pid>]
325
319
```
326
320
327
321
### Options
@@ -435,18 +429,6 @@ dotnet-trace collect-linux
435
429
436
430
The time for the trace to run. Use the `dd:hh:mm:ss` format. For example `00:00:00:05` will run it for 5 seconds.
437
431
438
-
#### .NET Process Target Options
439
-
440
-
See [Default collection behavior](#default-collection-behavior)
441
-
442
-
-**`-n, --name <name>`**
443
-
444
-
The name of the process to collect the trace from.
445
-
446
-
-**`-p|--process-id <PID>`**
447
-
448
-
The process ID to collect the trace from.
449
-
450
432
> [!NOTE]
451
433
452
434
> - To collect a trace using `dotnet-trace collect-linux`, it needs to be run with root permissions (`CAP_PERFMON`/`CAP_SYS_ADMIN`). Otherwise, the tool will fail to collect events.
0 commit comments