cody: Extension causes high cpu load
- Issue Type:
Performance - Extension Name:
cody-ai - Extension Version:
1.18.2 - OS Version:
Windows_NT x64 10.0.22631 - VS Code version:
1.89.1
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 16 (8 by maintainers)
It’s been merged now so will be included in next release. I have a few more performance items I’m chasing down that I hope to include as well. Will keep this issue open until I have those PRs up.
I did a few tests and subjectively, it improved. I don’t see the hanging and grey window anymore. But the fan still spins up, I just think less severe.
Thanks for the detailed instructions! CPU-20240605T120451.817Z.cpuprofile.txt
@avion23 LMK 1.20.2 fixes it for you, we included two fixes that hopefully did the trick.
W.r.t. the traces; I’m actually just writing some docs on this. But basically in VSCode open the command prompt (cmd+shift+P by default), and type
Developer: show running extensions.There you should see Cody in the list. Right click on it and start a host profile. This will show you the running profile in the bottom right of the window.
You can now just try and do the behavior that’s causing the issue. Then by clicking the message in the bottom right you stop the trace.
Finally you need to go back to the
Developer: show running extensionsview, right click Cody and click “Save extension profile”I’ll make this process easier in the future!
I tried the context = None, and I think it lowered the cpu usage. But not totally. How do I produce nice graphs for cpu/ram usage in vscode to debug this? The project is 44M LOC.
I’ll try out v1.20.2