-
Notifications
You must be signed in to change notification settings - Fork 511
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
Document how to measure iOS startup times #15416
Comments
Also probably want MacCatalyst included here, too. But that might be a completely different topic? |
I've tried to follow your instructions on the blog But when I try to run dotnet-trace in a following way:
Do you have some advice for me? What have I done wrong? |
Also, I've tried to do steps like in the guide for android
So, when I run dotnet-trace I've got a message like for an android session: Then I launched iOS app and it just runs on my iPhone, but dotnet-trace hasn't caught any data and is still waiting for a connection. How could I profile maui iOS apps? |
@jonathanpeppers can you comment on my questions somehow? |
@art-denisov try following this guide for profiling iOS apps: https://github.com/xamarin/xamarin-macios/wiki/Profiling |
I have already tried it. But, as I described above, I got an error on the last step. When I ran the following command What have I missed? I should notice that I try to do it on mac with the physical device connected by the cable. |
@art-denisov two things:
|
A doc about how to measure startup on iOS is up: https://github.com/xamarin/xamarin-macios/wiki/Profiling-App-Launch
Done. |
@rolfbjarne I use the command that you correct
|
@art-denisov did the app launch/show up on the device and if so, can you use it/interact with it? |
The app launches on the device and hangs on the start splash screen. I can't interact with it. It seems like the app waits for something. If I remove |
@art-denisov which version of $ dotnet-dsrouter --version
6.0.345601+f73f09031cebfc6256a9029ce9285a52fdad7380 If you have an earlier version, you need to update it like this: dotnet/diagnostics#3134 (comment) Also, once the app is running (and non-responsive), what happens if you execute the dotnet-trace command? $ dotnet-trace collect --diagnostic-port /tmp/maui-app,connect --format speedscope
??? |
@art-denisov looks like there's a copy-paste error in the instructions, try using the following dotnet-dsrouter command instead: dotnet-dsrouter server-client -tcpc 127.0.0.1:9001 -ipcs /tmp/maui-app --forward-port iOS (and then the other commands stay the same) |
That looks like a problem in
|
That's weird...
|
Just like the amazing doc here:
I think we need one on measuring iOS startup times? And perhaps other Apple platforms?
We have this document from Apple using instruments:
But I think there is some slowdown once you attach instruments to an iOS app (as seen in dotnet/maui#7687).
We did this for the measurements at https://aka.ms/dotnetperfstatus
If we make a new doc, we can link to it from:
The text was updated successfully, but these errors were encountered: