-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
excess CPU usage #822
Comments
Thank you for reporting the issue. The 100% you are seeing should only be for a single core and it is temporary while the extension is parsing your workspace folder and sub-folders. There is currently a bug in the extension where much of this processing is being repeated unnecessarily on subsequent relaunches, but we have a fix in the pipeline to address that. |
It consumes one core for about 24 minutes. real 0m2.003s Project can be cloned from https://github.com/HankB/c-txtutil if you wish to test with the code that provokes the issue. |
I have just found that the same version of VS code and CPP extension does not exhibit excessive CPU usage in a resource constrained environment. Please see microsoft/vscode#28406 (comment) for additional details. (If you prefer, I will copy the entire comment here.) |
On another PC Desktop) with a faster I7, more RAM and RAIDed SSDs I do not experience the excessive CPU issue so I am leaning toward the first possible cause in the previous comment (on the other issue. e.g. some residue in a file where VS code saves state that is causing a problem.) Edit: Red herring - CPU usage on this other PC is high as well. |
I cloned your repo and edited the text, and I don't see any excessive CPU usage. The folder parses in about a second for me on Windows and on Mint 18.1. My machines have non-RAID'ed SSDs and are otherwise average. I think I have all the sources you've referenced in your post. Does this include path look about right? It doesn't resolve all of the headers in all of your test folders, but it should be pulling in the most important ones. I tried using both the "Tag Parser" and "Default"
I'm not sure what else might be going on with your machine, but I'm not seeing anything awry with the C++ extension. :/ |
Hi Bob, thanks, |
Let us know if you need any further help. I'm going to close this issue for now since it doesn't look like there is anything else I can help you with at the moment. |
I think I have a similar issue: VS Code 1.18.0 To reproduce, just clone https://github.com/python/cpython , open vscode in the top level folder of the repo and open a I get a process named |
I deleted all my user settings and the |
VS Code 1.13.0
Linux Debian 9 (4.9.0-3-amd64 #1 SMP Debian 4.9.30-1 (2017-06-04) x86_64 GNU/Linux)
C/C++ 0.11.4
(Other extensions installed and presently disabled.)
Open VS code and CPU shows 100% on one or two threads including /home/hbarta/.vscode/extensions/ms-vscode.cpptools-0.11.4/bin/Microsoft.VSCode.CPP.Extension.linux. After several minutes the CPU load decreases to what would be expected as normal. If VS code is exited and restarted the same problem occurs.
To provoke the problem, it is only necessary to open a C file (Hello world will do) in VS code. No other actions are required.
A bug is also filed against VS code itself for excess CPU usage (microsoft/vscode#28406)
The text was updated successfully, but these errors were encountered: