Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch dsrouter from dotnet-trace #5241

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

StephaneDelcroix
Copy link

This PR aim to simplify the process of collecting traces for maui mobile scenarios and reduce the number of steps for simple cases (when a dsrouter isn't already running).

It adds a --dsrouter option to collect that takes one of the following values: android, android-emu, ios, ios-sim

This doesn't make dotnet-trace depends on dotnet-dsrouter, the option checks for the existence of dsrotuer in the same path as trace, and invokes it.

@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner February 10, 2025 19:09
@noahfalk
Copy link
Member

fyi @dotnet/dotnet-diag

@StephaneDelcroix StephaneDelcroix force-pushed the trace-dsrouter branch 3 times, most recently from 127755e to 90dba68 Compare February 12, 2025 09:14
This PR aim to simplify the process of collecting traces for maui mobile
scenarios and reduce the number of steps for simple cases (when a
dsrouter isn't already running).

It adds a --dsrouter option to collect that takes one of the following
values: android, android-emu, ios, ios-sim

This doesn't make dotnet-trace depends on dotnet-dsrouter, the option
checks for the existence of dsrotuer in the same path as trace, and
invokes it.
Copy link
Member

@lateralusX lateralusX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of nits, apart from that LGTM! Thanks!

src/Tools/Common/Commands/Utils.cs Outdated Show resolved Hide resolved
src/Tools/Common/DsRouterProcessLauncher.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants