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
"Extension causes high cpu load" warnings from VS Code due to slow module loading #1628
Comments
@TUKenStone are you able to attach the file mentioned in your message?
|
I’m not even sure what I need to attach to my home directory even mean since it’s already attached to /Users/Ken or ~/ which is my home directory but nowhere else. Note:
|
@TUKenStone sorry, what I mean was there is a file at Unfortunately I can't reproduce this issue (though my machine is very fast). I've had a few people raise it in the past, but none have ever attached the CPU profile, so I've never been able to investigate where the time is going. If you can attach that file (which I believe VS Code has sanitized to ensure there is no personally identifiable info, pathnames, etc.) I can investigate. If you'd rather share it privately, you can email it to logs@dartcode.org. Thanks! |
@TUKenStone Thanks! I got the trace, and it looks like the cause is that the extension has lots of files, and the loading and compiling of each is slow (this explains VS Code's push to have extensions bundle their JS recently). I don't think this is related to the other issue you mentioned though ("Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:1027/ws"). Can you open another issue about that? We might need to move it to the Flutter repo, but we can do a little debugging first to get more info. |
I can repro this now - not the warning, but the poor performance at least. It seems to be related to loading |
Fixed by #1741. |
Performance
dart-code
2.25.1
Darwin x64 18.5.0
1.33.1
/Users/ken/Dart-Code.dart-code-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
The text was updated successfully, but these errors were encountered: