microsoft / vscode

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

cpu 100% #165047

Closed tjx666 closed 2 years ago

tjx666 commented 2 years ago

Type: Performance Issue

A large vue project

VS Code version: Code - Insiders 1.73.0-insider (Universal) (3544aabd5a2b0da2cd3a6f3fa3f00759aa9d9709, 2022-10-27T21:41:11.954Z) OS version: Darwin x64 22.1.0 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz (8 x 1400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|3, 4, 5| |Memory (System)|16.00GB (5.55GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 15 164 69330 code-insiders main 0 66 69331 gpu-process 0 16 69334 utility-network-service 0 360 69335 window (admin) 0 131 69664 shared-process 0 33 69721 ptyHost 0 0 70552 /usr/local/bin/zsh -il 0 16 70935 node /Users/yutengjing/.nvm/versions/node/v18.12.0/bin/yarn serve 0 16 70936 /Users/yutengjing/.nvm/versions/node/v18.12.0/bin/node /Users/yutengjing/code/gaoding-editor/admin/.yarn/releases/yarn-1.18.0.cjs serve 0 16 70937 /Users/yutengjing/.nvm/versions/node/v18.12.0/bin/node /Users/yutengjing/code/gaoding-editor/admin/node_modules/.bin/cross-env PAGE=admin npx cross-env NODE_OPTIONS=--max_old_space_size=4096 gdc serve 0 16 70938 npm exec cross-env NODE_OPTIONS=--max_old_space_size=4096 gdc serve 0 16 70941 /Users/yutengjing/.nvm/versions/node/v18.12.0/bin/node /Users/yutengjing/code/gaoding-editor/admin/node_modules/.bin/cross-env NODE_OPTIONS=--max_old_space_size=4096 gdc serve 0 180 70942 gdc 0 33 72423 fileWatcher 0 0 79361 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 100 360 69746 extension-host 0 16 70107 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/kisstkondoros.vscode-gutter-preview-0.30.0/dist/server.js --node-ipc --clientProcessId=69746 0 33 70135 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/streetsidesoftware.code-spell-checker-2.10.1/packages/_server/dist/main.js --node-ipc --clientProcessId=69746 0 16 70136 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/stylelint.vscode-stylelint-1.2.3/dist/start-server.js --stdio --clientProcessId=69746 0 16 70137 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/vunguyentuan.vscode-css-variables-2.6.1/dist/server.js --node-ipc --clientProcessId=69746 0 33 70161 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=69746 0 16 70971 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/dbaeumer.vscode-eslint-2.2.6/server/out/eslintServer.js --node-ipc --clientProcessId=69746 0 16 70982 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/markdown-language-features/server/dist/node/main --node-ipc --clientProcessId=69746 0 16 71029 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=8192 /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/bx/v66hchwd1qd0z38bz284v_th0000gn/T/vscode-typescript501/aa55db07ccc35926bcdd/tscancellation-303673f80906ffbf3ed2.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29,/Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 33 71030 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=8192 /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/bx/v66hchwd1qd0z38bz284v_th0000gn/T/vscode-typescript501/aa55db07ccc35926bcdd/tscancellation-03ec35453c62a078117e.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29,/Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 16 71033 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/yutengjing/Library/Caches/typescript/4.9 --enableTelemetry --typesMapLocation /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation 0 33 71031 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/pucelle.vscode-css-navigation-1.13.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/yutengjing/.vscode-insiders/extensions/pucelle.vscode-css-navigation-1.13.3/server/out/server.js --node-ipc --clientProcessId=69746 0 33 71083 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/html-language-features/server/dist/node/htmlServerMain --node-ipc --clientProcessId=69746 0 33 71234 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/octref.vetur-0.36.0/server/dist/vueServerMain.js --node-ipc --clientProcessId=69746 0 16 71245 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/node/cssServerMain --node-ipc --clientProcessId=69746 0 147 72422 extension-host 0 49 72429 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/octref.vetur-0.36.0/server/dist/vueServerMain.js --node-ipc --clientProcessId=72422 0 33 72430 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/kisstkondoros.vscode-gutter-preview-0.30.0/dist/server.js --node-ipc --clientProcessId=72422 0 33 72431 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/pucelle.vscode-css-navigation-1.13.3/client/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/yutengjing/.vscode-insiders/extensions/pucelle.vscode-css-navigation-1.13.3/server/out/server.js --node-ipc --clientProcessId=72422 0 131 72463 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/dbaeumer.vscode-eslint-2.2.6/server/out/eslintServer.js --node-ipc --clientProcessId=72422 0 115 72487 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/streetsidesoftware.code-spell-checker-2.10.1/packages/_server/dist/main.js --node-ipc --clientProcessId=72422 0 33 72488 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/stylelint.vscode-stylelint-1.2.3/dist/start-server.js --stdio --clientProcessId=72422 0 33 72489 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/vunguyentuan.vscode-css-variables-2.6.1/dist/server.js --node-ipc --clientProcessId=72422 0 33 72547 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=8192 /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/bx/v66hchwd1qd0z38bz284v_th0000gn/T/vscode-typescript501/0a34eca4789d2ba5478a/tscancellation-30791d9ce6e02ecac8a9.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29,/Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 262 72548 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=8192 /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/bx/v66hchwd1qd0z38bz284v_th0000gn/T/vscode-typescript501/0a34eca4789d2ba5478a/tscancellation-9775b1629f981ef819f6.tmp* --globalPlugins @vsintellicode/typescript-intellicode-plugin,ms-vsintellicode-typescript --pluginProbeLocations /Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29,/Users/yutengjing/.vscode-insiders/extensions/visualstudioexptteam.vscodeintellicode-1.2.29 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 16 72552 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/yutengjing/Library/Caches/typescript/4.9 --enableTelemetry --typesMapLocation /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.9.20221030/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation 0 33 72691 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=72422 2 82 79356 issue-reporter ```
Workspace Info ``` | Window (admin) | Folder (admin): 11831 files | File types: js(2603) vue(1933) svg(1620) ts(1483) less(358) png(345) | md(285) json(224) html(148) css(60) | Conf files: package.json(75) tsconfig.json(23) webpack.config.js(12) | settings.json(1) tasks.json(1); ```
Extensions (78) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 extendscript-debug|Ado|2.0.3 tsl-problem-matcher|amo|0.6.2 file-nesting|ant|1.0.0 color-info|bie|0.7.0 gif-player|bie|0.0.2 github-markdown-preview|bie|0.3.0 jsdoc-markdown-highlighting|bie|0.0.1 markdown-checkbox|bie|0.3.3 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.0.7 markdown-mermaid|bie|1.15.2 markdown-preview-github-styles|bie|1.0.1 markdown-yaml-preamble|bie|0.1.0 file-browser|bod|0.2.10 vscode-translation|cai|3.0.5 vscode-url-title-resolver|cap|1.1.1 compare-view|che|0.9.0 vscode-opennewinstance|chr|0.0.12 bracket-select|chu|2.0.2 gitignore|cod|0.9.0 font-preview|ctc|2.2.1 vscode-markdownlint|Dav|0.48.1 vscode-eslint|dba|2.2.6 difflens|Dif|0.0.1 githistory|don|0.6.19 tsimportsorter|doz|7.5.1 css-flexbox-cheatsheet|dzh|3.3.1 css-initial-value|dzh|0.2.6 gitlens-insiders|eam|2022.10.2605 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.9.0 code-runner|for|0.11.8 shell-format|fox|7.2.2 todo-tree|Gru|0.0.219 vscode-select-by-indent|hab|0.3.3 css-to-jss|inf|1.0.7 path-autocomplete|ion|1.22.1 vscode-env|Iro|0.1.0 search-editor-apply-changes|jak|0.1.1 markdown-kbd|jja|0.4.2 svg|joc|1.4.22 vscode-gutter-preview|kis|0.30.0 escook-translate|liu|1.1.0 extension-settings-opener|man|0.0.5 render-crlf|med|1.6.0 template-string-converter|meg|0.6.0 js-debug-nightly|ms-|2022.10.1817 live-server|ms-|0.5.2022102701 vscode-js-profile-flame|ms-|1.0.4 vscode-typescript-next|ms-|4.9.20221030 jsdoc-link|MuT|0.2.0 vetur|oct|0.36.0 vscode-twoslash-queries|Ort|1.1.0 vscode-versionlens|pfl|1.0.10 fileutils|pom|0.0.8 vscode-css-navigation|puc|1.13.3 text-power-tools|qcz|1.37.0 vscode-xml|red|0.23.2022102904 vscode-yaml|red|1.10.1 code-spell-checker|str|2.10.1 vscode-stylelint|sty|1.2.3 markdowntable|Tak|0.10.2 graphviz-interactive-preview|tin|0.3.5 vscode-choosealicense|ult|0.9.0 vscodeintellicode|Vis|1.2.29 vscode-icons|vsc|12.0.1 vscode-css-variables|vun|2.6.1 adobe-extension-devtools|YuT|0.2.8 open-in-external-app|YuT|0.8.2 scripting-listener|YuT|0.0.4 vscode-archive|YuT|0.1.2 vscode-colorize-plus|YuT|0.12.5 vscode-fe-helper|YuT|0.2.6 ytj-snippets|YuT|0.0.6 markdown-all-in-one|yzh|3.4.4 classnametocss|zit|0.0.6 node-modules|zyr|1.5.3 (1 theme extensions excluded)
vscodenpa commented 2 years ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!