microsoft / vscode

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

Code drawing about 100% CPU on iMac late 2015 MacOS 12.7.4 #210378

Closed Aclassifier closed 5 months ago

Aclassifier commented 5 months ago

Type: Performance Issue

I just run it. This might have happened recently.

I don't have Cpp code, but XC code (XMOS xTIMEcomposer). The directory I edit resides on a machine I have under the table, connected through the OS. That machine runs macOS 10.12.6 (just a compile only Mac mini from 2010).

Just now by sitting in this issue report window I notice the the fan is not hearable any more, still cpptools draws 98%.

VS Code version: Code 1.88.1 (Universal) (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:42:52.765Z) OS version: Darwin x64 21.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-5675R CPU @ 3.10GHz (4 x 3100)| |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)|15, 12, 8| |Memory (System)|16.00GB (0.09GB free)| |Process Argv|--crash-reporter-id ab8a15ad-97b2-4174-91c1-d3b8bb2b36f6| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 12 147 47394 code main 0 49 47397 gpu-process 0 16 47398 utility-network-service 1 377 47401 window [1] (button_press.xc — workspace) 0 131 47405 extensionHost [1] 0 98 47410 /Users/teig/.vscode/extensions/ms-vscode.cpptools-1.19.9-darwin-x64/bin/cpptools 0 66 47406 shared-process 0 0 64871 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 33 47407 fileWatcher [1] 0 66 64859 window [2] (Issue Reporter) ```
Workspace Info ``` | Window (button_press.xc — workspace) | Folder (workspace): 16277 files | File types: o(863) xml(855) d(839) h(814) decouple(742) DS_Store(420) | index(389) s(290) xc(272) c(249) | Conf files: makefile(71) settings.json(1); ```
Extensions (23) Extension|Author (truncated)|Version ---|---|--- doxdocgen|csc|1.4.0 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.6.0 go|gol|0.41.2 better-cpp-syntax|jef|1.17.2 klighd-vscode|kie|0.4.2 vscode-lingua-franca|lf-|0.6.0 debugpy|ms-|2024.4.0 isort|ms-|2023.10.1 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 jupyter|ms-|2024.3.1 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 cmake-tools|ms-|1.17.17 cpptools|ms-|1.19.9 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.9.10 ayu|tea|1.0.5 pdf|tom|1.2.2 cmake|twx|0.0.17 (3 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r6:30993540 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 g1icg217:30999571 724cj586:31013169 ```
chrmarti commented 5 months ago

Is this caused by the C++ extension? Could you file a new issue for it: https://github.com/microsoft/vscode-cpptools/issues?

VSCodeTriageBot commented 5 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!