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
[dsrouter] improve log message when launched as a subprocess (#5536)
`dotnet-trace collect --dsrouter android` logs an unnecessary message
currently:
Run diagnotic tool connecting application on android device through
dotnet-dsrouter pid=38004:
dotnet-trace collect -p 38004
`dotnet-trace` is launching and controlling `dotnet-dsrouter`, and so
you would not need to run `dotnet-trace collect -p 38004`.
To solve this:
* Pass `--parentprocess pid:name` when launching `dotnet-dsrouter` from
`dotnet-trace`
* `dotnet-dsrouter` checks `--parentprocess` switch to tell if it is
running as a subprocess
* Only log this message when *not* a subprocess
Description="If dsrouter was launched from dotnet-trace or another .NET diagnostic tool, contains the parent process ID and name: --parentprocess pid:name",
0 commit comments