question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension causes high cpu load

See original GitHub issue
  • Issue Type: Performance
  • Extension Name: dart-code
  • Extension Version: 3.10.1
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.44.2

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:closed
  • Created 3 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, May 5, 2020

Ok, I managed to figure out the code that’s running from the minified stacks! It’s the code that tries to locate the roots of your projects:

https://github.com/Dart-Code/Dart-Code/blob/699c291b3f6424753ffde81ba7724e04fcb25c70/src/shared/utils/fs.ts#L69-L82

I’ll look at trying to optimise this and changing it to be async so it doesn’t block the extension host thread. Thanks!

0reactions
DanTupcommented, May 5, 2020

Great! I’ll merge that change in for the next release. You can stick on this version in the meantime - it’ll automatically upgrade to the next release when it’s published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension causes high cpu load · Issue #1033 - GitHub
Recently I upgraded my global eslint to v7, if that's important, but I believe the high CPU usage goes back a long way....
Read more >
[SOLVED] Chrome High CPU Usage - Driver Easy
Chrome extensions are also known to cause Chrome high system resources usage, such as 100% CPU, memory or disk usage.
Read more >
VS Code using all of the CPUs and how to fix it - Remy Sharp
TL;DR: (yes, I ramble): use "Start extension bisect" in VS Code, it'll take less than 5 minutes. This is what I'm talking about....
Read more >
High CPU usage: What are the potential causes? - IONOS
Causes of high processor usage · Programs with higher CPU requirements: · Autostart programs: · Viruses · Browser: ...
Read more >
High CPU usage due to CEPHtmlEngine - Adobe Support
Solution 1: Delete the plug-in extension folder causing high CPU usage · Solution 2: Check the log files folder · macOS · Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found