code-settings-sync icon indicating copy to clipboard operation
code-settings-sync copied to clipboard

Extension causes high cpu load

Open ratul16 opened this issue 5 years ago • 7 comments

  • Issue Type: Performance
  • Extension Name: code-settings-sync
  • Extension Version: 3.4.3
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.41.1

:warning: Make sure to attach this file from your home-directory: :warning:C:\Users\harat\Shan.code-settings-sync-unresponsive.cpuprofile.txt

Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

ratul16 avatar Dec 21 '19 06:12 ratul16

Shan.code-settings-sync-unresponsive.cpuprofile.txt Just had something happen that resulted in VS code directing me here. It said to attach this file.

nemchik avatar Mar 12 '20 15:03 nemchik

Shan.code-settings-sync-unresponsive.cpuprofile.txt Version: 1.46.0-insider (system setup) Commit: 6849775440496504e0677ffcf2a46d47ad9130f5 Date: 2020-05-15T05:30:56.857Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.19628

CPUs Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz (4 x 2990)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled
Load (avg) undefined
Memory (System) 15.91GB (1.20GB free)
Process Argv  
Screen Reader no
VM 0%
Extension Author (truncated) Version
vscode-django bat 0.20.0
npm-intellisense chr 1.3.0
vscode-markdownlint Dav 0.35.2
vscode-eslint dba 2.1.5
java-decompiler dgi 0.0.2
githistory don 0.6.5
python-extension-pack don 1.6.0
prettier-vscode esb 4.7.0
code-runner for 0.10.0
beautify Hoo 1.5.0
vscode-peacock joh 3.7.2
chat kar 0.33.0
vscode-codemetrics kis 1.24.0
vscode-github Kni 0.30.3
bash-ide-vscode mad 1.10.0
MagicPython mag 1.1.0
vscode-azurefunctions ms- 0.22.1
python ms- 2020.5.78807
remote-wsl ms- 0.44.2
azure-account ms- 0.8.11
powershell-preview ms- 2020.5.0
vsliveshare ms- 1.0.2169
vsliveshare-audio ms- 0.1.85
vsliveshare-pack ms- 0.3.4
debugger-for-chrome msj 4.12.6
autodocstring njp 0.5.1
vscode-for-node-js-development-pack nod 2.0.1
subtitles-editor pep 1.0.4
java red 0.61.0
vscode-xml red 0.11.0
code-settings-sync Sha 3.4.3
vscode-checkstyle she 1.3.3
vscodeintellicode Vis 1.2.7
vscode-java-debug vsc 0.26.0
vscode-java-dependency vsc 0.10.1
vscode-java-pack vsc 0.9.1
vscode-java-test vsc 0.22.4
vscode-maven vsc 0.21.4
python-auto-venv whi 1.1.0
jinja who 0.0.8
vscode-import-cost wix 2.12.0
vscode-preview-server yui 1.3.0
markdown-all-in-one yzh 2.8.0

mavaddat avatar May 16 '20 22:05 mavaddat

Shan.code-settings-sync-unresponsive.cpuprofile.txt

Extension version: 1.0.2274 VS Code version: Code - Insiders 1.46.0-insider (595d2b9b916d063aadfc2c1a8c8f6df5b45572a8, 2020-06-03T05:43:09.908Z) OS version: Windows_NT x64 10.0.19635

System Info
Attribute Value
CPUs Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz (4 x 2990)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled
Load (avg) undefined
Memory (System) 15.91GB (4.89GB free)
Process Argv -n C:\Users\MavaddatJavid\AppData\Local\Temp\vsliveshare\tmp-E38AD9D16A96F58215D42154141023C50017\Visual Studio Live Share.code-workspace
Screen Reader no
VM 0%
Installed Extensions
Extension Author (truncated) Version
npm-intellisense chr 1.3.0
vscode-markdownlint Dav 0.36.0
vscode-eslint dba 2.1.5
java-decompiler dgi 0.0.2
githistory don 0.6.5
prettier-vscode esb 5.0.0
vscode-todo-plus fab 4.17.1
code-runner for 0.10.0
beautify Hoo 1.5.0
vscode-peacock joh 3.7.2
chat kar 0.34.0
vscode-codemetrics kis 1.24.0
vscode-github Kni 0.30.3
bash-ide-vscode mad 1.10.2
vscode-azurefunctions ms- 0.22.1
python ms- 2020.6.0-qp-new-ls
remote-wsl ms- 0.44.2
azure-account ms- 0.8.11
powershell-preview ms- 2020.6.0
vsliveshare ms- 1.0.2274
vsliveshare-audio ms- 0.1.85
vsliveshare-pack ms- 0.4.0
debugger-for-chrome msj 4.12.8
autodocstring njp 0.5.3
vscode-for-node-js-development-pack nod 2.0.1
subtitles-editor pep 1.0.4
java red 0.62.0
vscode-xml red 0.11.0
code-settings-sync Sha 3.4.3
vscode-checkstyle she 1.3.3
vscodeintellicode Vis 1.2.7
vscode-java-debug vsc 0.26.0
vscode-java-dependency vsc 0.10.2
vscode-java-pack vsc 0.9.1
vscode-java-test vsc 0.22.4
vscode-maven vsc 0.21.4
vscode-import-cost wix 2.12.0
vscode-preview-server yui 1.3.0
markdown-all-in-one yzh 3.0.0

mavaddat avatar Jun 03 '20 23:06 mavaddat

By now (25th April) the issue still persists, I've got 20% CPU load without doing anything. It's not enough to turn off the sync, I need to disable the extensions completely, in that case the CPU usage sinks to 0% (no user action).

StrictLine avatar Apr 25 '22 14:04 StrictLine

I can also confirm that this extension causes about 24% load on a cpu core. Disabling fixes immediately.

jscheel avatar Apr 26 '22 17:04 jscheel

Same here on Mac. 20% CPU for Electron Process with the extension enabled. Drops to 2% when disabled.

schneikai avatar Apr 28 '22 08:04 schneikai

https://user-images.githubusercontent.com/31098164/167118792-70f0a091-7b24-4cfc-8d6d-789a08724d3a.mov

I have 0% extensionHost idle cpu usage without this extension and when I start profiling extension cpu usage the cpu usage drops from ~30-70% to 10-15%. There may be an obvious good reason, but not gonna lie that looks real shady.

philipaarseth avatar May 06 '22 11:05 philipaarseth