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
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.
It was not. The purpose of flutter attach is to connect to a previously detached full-flutter app or to an add-to-app module in debug rather than profile mode.
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
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Mar 26, 2020
It's initializing the frontend server and compiling the application code. This process is bootstrapped from the already compiled app if available.
xster commentedon Mar 27, 2020
Ah, that sounds reasonable. You're saying that middle 2s+ would be drastically reduced in profile mode right?
jonahwilliams commentedon Mar 27, 2020
Yeah, under profile mode we wouldn't attempt to compile anything - just connect
jonahwilliams commentedon Mar 27, 2020
there also shouldn't be any devfs work in profile mode - so if that is case there is definitely a bug
zanderso commentedon Apr 15, 2020
@xster @jonahwilliams were either of you able to verify whether extra work was being done in profile mode?
xster commentedon Apr 15, 2020
It was not. The purpose of
flutter attachis to connect to a previously detached full-flutter app or to an add-to-app module in debug rather than profile mode.zanderso commentedon Apr 16, 2020
Is there anything actionable left in this issue, or should we close it?
xster commentedon Apr 16, 2020
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.
jonahwilliams commentedon Oct 12, 2020
@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
github-actions commentedon Jul 11, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.