-
Notifications
You must be signed in to change notification settings - Fork 146
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
Profiling the app with patrol #1490
Comments
Hi, this is not possible. To run tests on a physical iOS device, the Flutter app must be built in release mode. Learn why here. |
@bartekpacia Noted. How do you advice we do profile the app then? I need to automate traversing the app and get a performance report after say 10 or 20 runs. Your input is highly appreciated. |
I haven't done much profiling of Flutter apps, so can't really answer that, sorry. |
This is kind of buried in the docs: profiling utilizing integration testing |
Did you have any success with profiling on Android? |
I'm more concerned with iOS since most of our users are iOS users. But I will investigate and get back to you. |
Hi @ahmdaeyz, it appears that running Patrol tests on a physical iOS device in profile mode is possible. I'll release the hotfix soon, so you'll be able to do:
|
Hello @bartekpacia I've noticed that the report data doesn't get passed to the flutter driver too. I tried printing the reportData at the end of the test but using the summariser like the docs I sent earlier (at the end). |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Steps to reproduce
Try to run the tests in profile mode on a physical iOS device.
Actual results
The patrol_cli exits with an error that It must be a release to run on a physical device. I want to get the performance related data on the binding and be able to use patrol at the same time.
Logs
Logs
Patrol version
Both latest v1 and latest v2
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: