dotnet-counters with .net maui #104194
Unanswered
MichaelFrenkel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are dotnet-counters supported for .net MAUI?
I can't figure out whether dotnet-counters is supported for .net maui or not. Based on https://github.com/dotnet/runtime/blob/main/docs/design/mono/diagnostics-tracing.md I suppose it should be supported but I haven't managed to get any metrics with dotnet-counters.
What I do:
dotnet-dsrouter android-emu
dotnet-dsrouter ios-sim
build an app:
dotnet build -f net8.0-android -t:Install -c Release -p:AndroidEnableProfiler=true
<_SystemDiagnosticsMetricsMeterIsSupported>true</_SystemDiagnosticsMetricsMeterIsSupported>
[Xamarin.Android.Build.Tasks] feature switch defaults for fast startup android#8347mlaunch --launchsim XXX.app --device=:v2:udid=XXX '--setenv:DOTNET_DiagnosticPorts=127.0.0.1:9000,nosuspend,listen'
run dotnet-counters:
dotnet-counters monitor -p XXX
and gettingStatus: Waiting for initial payload...
dotnet-counters collect -p
=> result file is emptyBeta Was this translation helpful? Give feedback.
All reactions