Skip to content

Commit bdd0e08

Browse files
Update dotnet-trace.md for --dsrouter switch (#46087)
* Update dotnet-trace.md for --dsrouter switch dotnet-trace has a --dsrouter switch. document it * Update docs/core/diagnostics/dotnet-trace.md Co-authored-by: Tom McDonald <[email protected]> --------- Co-authored-by: Tom McDonald <[email protected]>
1 parent 7ab263e commit bdd0e08

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/core/diagnostics/dotnet-trace.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: dotnet-trace diagnostic tool - .NET CLI
33
description: Learn how to install and use the dotnet-trace CLI tool to collect .NET traces of a running process without the native profiler, by using the .NET EventPipe.
4-
ms.date: 08/22/2024
4+
ms.date: 05/12/2025
55
ms.topic: reference
66
---
77
# dotnet-trace performance analysis utility
88

9-
**This article applies to:** ✔️ `dotnet-trace` 3.0.47001 and later versions
9+
**This article applies to:** ✔️ `dotnet-trace` 9.0.625801 and later versions
1010

1111
## Install
1212

@@ -76,6 +76,7 @@ Collects a diagnostic trace from a running process or launches a child process a
7676

7777
```dotnetcli
7878
dotnet-trace collect [--buffersize <size>] [--clreventlevel <clreventlevel>] [--clrevents <clrevents>]
79+
[--dsrouter <ios|ios-sim|android|android-emu>]
7980
[--format <Chromium|NetTrace|Speedscope>] [-h|--help] [--duration dd:hh:mm:ss]
8081
[-n, --name <name>] [--diagnostic-port] [-o|--output <trace-file-path>] [-p|--process-id <pid>]
8182
[--profile <profile-name>] [--providers <list-of-comma-separated-providers>]
@@ -154,6 +155,10 @@ dotnet-trace collect [--buffersize <size>] [--clreventlevel <clreventlevel>] [--
154155

155156
You can read about the CLR provider more in detail on the [.NET runtime provider reference documentation](../../fundamentals/diagnostics/runtime-events.md).
156157

158+
- **`--dsrouter {ios|ios-sim|android|android-emu}**
159+
160+
Starts [dotnet-dsrouter](dotnet-dsrouter.md) and connects to it. Requires [dotnet-dsrouter](dotnet-dsrouter.md) to be installed. Run `dotnet-dsrouter -h` for more information.
161+
157162
- **`--format {Chromium|NetTrace|Speedscope}`**
158163

159164
Sets the output format for the trace file conversion. The default is `NetTrace`.

0 commit comments

Comments
 (0)