Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup Activation Takes Too Long #22283

Closed
mh-firouzjah opened this issue Oct 23, 2023 · 5 comments
Closed

Startup Activation Takes Too Long #22283

mh-firouzjah opened this issue Oct 23, 2023 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@mh-firouzjah
Copy link

Type: Performance Issue

On opening new instances of vscode the startup activation of vscode-python extension takes too long and it is even worse than what it shows, because for example in the time of writing I can see vscode tool Running Extensions shows that it took 8044ms for vscode-python but the actual time varies and it is way more than this, it is about 3min. the extension tries to analyze all python files in the root directory and other applicable places so it will be very time consuming.

Extension version: 2023.18.0
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:45:31.402Z)
OS version: Linux x64 6.5.0-9-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (4 x 1000)
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 8, 9, 6
Memory (System) 15.36GB (11.03GB free)
Process Argv --unity-launch --crash-reporter-id 3eb16567-d61d-416f-bc76-2e50ebd2ea7b --inspect-extensions=39839 --crash-reporter-id 3eb16567-d61d-416f-bc76-2e50ebd2ea7b
Screen Reader no
VM 0%
DESKTOP_SESSION plasmawayland
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
Process Info
CPU %	Mem MB	   PID	Process
    0	   126	 72441	code main
    0	    31	 72444	   zygote
    0	   126	 72474	     gpu-process
    0	    31	 72445	   zygote
    0	     0	 72447	     zygote
    0	   204	 72515	window [1] (Running Extensions - ifps)
    0	    94	 72912	window [2] (Issue Reporter)
    0	    63	 72480	   utility-network-service
    0	    94	 72614	shared-process
    0	     0	 72947	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    79	 72615	fileWatcher [1]
    0	    79	 72636	ptyHost
    0	     0	 72698	     /usr/bin/zsh -i
    0	   377	 72656	extensionHost [1]
    0	    63	 72738	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node --nolazy --inspect=6009 /home/mh-firouzjah/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=72656)
    0	    63	 72740	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /home/mh-firouzjah/.vscode/extensions/mtxr.sqltools-0.28.0/dist/languageserver.js --node-ipc --clientProcessId=72656)
    6	    94	 72770	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node --nolazy --inspect=60048 /home/mh-firouzjah/.vscode/extensions/streetsidesoftware.code-spell-checker-3.0.1/packages/_server/dist/main.cjs --node-ipc --clientProcessId=72656)
    0	    47	 72783	     /media/mh-firouzjah/DATA/projects/ifps/.venv/bin/python /home/mh-firouzjah/.vscode/extensions/ms-python.black-formatter-2023.4.1/bundled/tool/lsp_server.py
    0	    31	 72784	     /media/mh-firouzjah/DATA/projects/ifps/.venv/bin/python /home/mh-firouzjah/.vscode/extensions/ms-python.isort-2023.10.1/bundled/tool/lsp_server.py
    0	    63	 72881	     electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node --nolazy --inspect=6227 /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=72656)
    0	    47	 72902	     /media/mh-firouzjah/DATA/projects/ifps/.venv/bin/python /home/mh-firouzjah/.vscode/extensions/ms-python.pylint-2023.8.1/bundled/tool/lsp_server.py
Workspace Info
|  Window (Running Extensions - ifps)
|    Folder (ifps): 15700 files
|      File types: py(3817) pyc(3810) po(1212) mo(1211) pyi(218) html(160)
|                  js(91) so(64) c(48) f90(44)
|      Conf files:;
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30856253
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingc:30859502
synctok:30869157
dsvsc013:30795093
dsvsc014:30804076
pythonmpsinfo:30842941
dsvsc015:30845448
pythontestfixt:30866405
pyreplss1:30865275
pythontbext0:30864172

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 23, 2023
@karrtikr
Copy link

Please upload the CPU profile which will help us track down the issue. Follow the steps here:
https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 23, 2023
@mh-firouzjah
Copy link
Author

Screenshot_20231024_094354
CPU-20231024T061149.885Z.cpuprofile.txt

Well thank you for attention, here you are.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 24, 2023
@karrtikr
Copy link

Can you disable the Pylance extension and see if it makes a difference?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 26, 2023
@karrtikr
Copy link

Can you disable all extensions except Python and provide the profile again? thanks

Copy link

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants