microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.61k stars 29.03k forks source link

becomes laggy #207247

Closed abalone88 closed 7 months ago

abalone88 commented 7 months ago

Type: Performance Issue

becomes laggy frequently. When it starts lagging can't do anything but have to wait for a few seconds

VS Code version: Code 1.87.1 (1e790d77f81672c49be070e04474901747115651, 2024-03-06T00:23:16.418Z) OS version: Darwin x64 23.4.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 x 2300)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|5, 5, 5| |Memory (System)|16.00GB (0.10GB free)| |Process Argv|--crash-reporter-id e5671447-5b47-4522-a774-a1341f4c3909| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 12 197 22632 code main 0 98 22635 gpu-process 1 33 22636 utility-network-service 0 98 22657 shared-process 0 0 23423 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 49 22664 ptyHost 0 0 22848 /bin/zsh 0 0 22939 /bin/zsh -il 0 688 22840 window [2] (project1.ipynb) 0 197 22841 extensionHost [2] 0 66 22861 electron-nodejs (server.js ) 0 770 22866 electron-nodejs (bundle.js ) 0 475 23126 electron-nodejs (Jg.js ) 0 180 22844 window 0 33 22845 fileWatcher [2] 0 66 23417 window [3] (Issue Reporter) ```
Workspace Info ``` ; ```
Extensions (18) Extension|Author (truncated)|Version ---|---|--- latex-workshop|Jam|9.19.0 debugpy|ms-|2024.2.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.2.3 jupyter|ms-|2024.2.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cpptools|ms-|1.19.6 java|red|1.28.1 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-java-debug|vsc|0.56.2 vscode-java-dependency|vsc|0.23.5 vscode-java-pack|vsc|0.25.15 vscode-java-test|vsc|0.40.1 vscode-maven|vsc|0.44.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30981707 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r6:30958158 dsvsc020:30976470 ```
DonJayamanne commented 7 months ago

Please can you follow the guidelines in this wiki to narrow down the issue https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-is-consuming-a-lot-of-cpu Specifically https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-is-sluggish

abalone88 commented 7 months ago

Hi done it thanks!

prof-6oUhXBPz.renderer.cpuprofile.txt prof-6oUhXBPz.extHost.cpuprofile.txt prof-6oUhXBPz.main.cpuprofile.txt

DonJayamanne commented 7 months ago

Sorry, before I check this, does this issue repro, when you disable all of the extensions? If yes, please share CPU logs again with all extensions disabled, else Please can you file an issue against the extension that causes the delays.

vscodenpa commented 7 months ago

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!