"Extension causes high cpu load" warnings from VS Code due to slow module loading
See original GitHub issue- Issue Type:
Performance
- Extension Name:
dart-code
- Extension Version:
2.25.1
- OS Version:
Darwin x64 18.5.0
- VSCode version:
1.33.1
⚠️ Make sure to attach this file from your home-directory:
⚠️/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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (5 by maintainers)
Top Results From Across the Web
VS Code Performance – How to Optimize Visual Studio Code ...
Extensions are loaded and unloaded under different conditions. The author of the extension decides this. This is specified through Activation ...
Read more >Remote Development Tips and Tricks - Visual Studio Code
Remote Development Tips and Tricks. This article covers troubleshooting tips and tricks for each of the Visual Studio Code Remote Development extensions.
Read more >Measure CPU usage in your apps - Visual Studio (Windows)
Analyze CPU performance issues in your application using the debugger-integrated diagnostics tools.
Read more >Build Performance - webpack
This guide contains some useful tips for improving build/compilation performance. General. The following best practices should help, whether you're running ...
Read more >Guide to w3wp.exe High CPU Usage for IIS Worker Processes
To measure if garbage collection could be causing problems for your application, check this Windows Performance Counter: .NET CLR Memory -> % ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TUKenStone sorry, what I mean was there is a file at
/Users/ken/Dart-Code.dart-code-unresponsive.cpuprofile.txt
that VS Code created when it gave you this warning, and you are supposed to attach it to this GitHub issue. It’s a CPU profile of the extension code, which will show what code was running when this happened.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!
Fixed by #1741.