Skip to content

Commit 72027e3

Browse files
committed
[DotnetTrace][CollectLinux] Cut target process options
1 parent 8118b86 commit 72027e3

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

docs/core/diagnostics/dotnet-trace.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,7 @@ When `--providers`, `--profile`, `--clrevents`, and `--perf-events` aren’t spe
292292
- `dotnet-common` — lightweight .NET runtime diagnostics.
293293
- `cpu-sampling` — kernel CPU sampling (perf-based) via `Universal.Events/cpu`.
294294

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`.
298296

299297
### Prerequisites
300298

@@ -318,10 +316,6 @@ dotnet-trace collect-linux
318316
# Trace Collection
319317
[-o|--output <trace-file-path>]
320318
[--duration dd:hh:mm:ss]
321-
322-
# .NET Process Target (Optional)
323-
[-n, --name <name>]
324-
[-p|--process-id <pid>]
325319
```
326320

327321
### Options
@@ -435,18 +429,6 @@ dotnet-trace collect-linux
435429

436430
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.
437431

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-
450432
> [!NOTE]
451433
452434
> - 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

Comments
 (0)