-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Code Helper High CPU Usage #156810
Comments
@ZrowGz Don't think |
@fishcharlie Can you yay to get the full arguments of the process that have high cpu usage? You can do this in the terminal by getting the relevant process id (from activity monitory) and running:
This should print something like:
|
@mjbvz Here you go:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
When this happens please use this guide to profile the extension host: https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions |
@jrieken Thanks for the reply. As I mentioned in my original post:
There is some strong evidence that this is not due to an extension. I'd be curious to hear what evidence you have that it is due to an extension. Really trying to narrow this down, but based on my findings it's not due to an extension. |
First, bisect doesn't blame built-in extensions so it might well be one of those. Second, the extension host process, which you identified, runs not just extensions but also stuff to run them in the first place. It might that. Any of those issues should become visible with the afore mentioned profiling of the extesion host process |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
@jrieken Apologizes for the delay on this. Hopefully this can be reopened. I have attached a screenshot and the profile. At first glance it looks like this might be due to the JavaScript Debugger. |
Yeah, looks like it. Reopening and forwarding to @connor4312 for investigation |
@connor4312 @mjbvz Is there any chance this could be included in August 2022 Recovery 1 (#160335)? |
This bug has been around for a couple years, so I don't feel it's a recovery candidate. However note you can switch to the nightly extension to get the fix. |
@connor4312 Thanks! I'll give that a shot. |
@connor4312 Can you please provides steps to verify this? |
Getting into this state requires some tricky timing that I wasn't able to hit naturally on my machine. Probably the best way is just debugging js-debug
|
Does this issue occur when all extensions are disabled?: Yes
I thought this might have been due to an extension since I ran
disable-extensions
and it didn't happen that quickly, but after runningExtension Bisect
it happened, and gave me a messageExtension Bisect is done but no extension has been identified. This might be a problem with Code.
. As mentioned below this might have been because it attached to a process and was trying to debug a Node.js process. I noticed after I started Extension Bisect that the debugger attached only when I started Extension Bisect (I had an existing process running before that, that maybe failed to attach???).Steps to Reproduce:
Unknown exactly how to reproduce this, but it happens pretty frequently. Shortly after launching VS Code the
Code Helper
process takes up a lot of CPU usage. It seems like this might be correlated to when I start debugging a Node.js process.One more note, I'm running 2 processes:
tsc --watch
&nodemon
.Attached are some screenshots that might be helpful.
Please let me know what additional steps I can do to help debug/troubleshoot this.
The text was updated successfully, but these errors were encountered: