-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Review flutter attach performance #53313
Comments
It's initializing the frontend server and compiling the application code. This process is bootstrapped from the already compiled app if available. |
Ah, that sounds reasonable. You're saying that middle 2s+ would be drastically reduced in profile mode right? |
Yeah, under profile mode we wouldn't attempt to compile anything - just connect |
there also shouldn't be any devfs work in profile mode - so if that is case there is definitely a bug |
@xster @jonahwilliams were either of you able to verify whether extra work was being done in profile mode? |
It was not. The purpose of |
Is there anything actionable left in this issue, or should we close it? |
I think we should profile whether any of the 8s spent during the attach can be improved on. If not, we should provide clearer output on what the tool is doing while the user's waiting. |
@xster would you be willing to try this again? I've landed a few optimizations to devFS initialization which should help. Preferably one that is uncached and one that is fully cached |
On a simple test, it takes ~8s to connect to an already running flutter observatory via
flutter attach
. Though ~3s was from cleaning up the devfs and closing the process.Log gist at https://gist.github.com/xster/5becc4937c2cef8d5e84660d0601abd1
There's a 2397ms apparently pure Dart part in the middle of the process too.
We should optimize.
The text was updated successfully, but these errors were encountered: