microsoft / vscode

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

Startup takes over 30 seconds, with or without extensions #192766

Open mxdr opened 1 year ago

mxdr commented 1 year ago

image

It takes around 30 seconds for VSCode to start, after pressing "wait" a few times. I do not know how to further debug the issue myself. No significant changes were made prior to when this started to happen.

Once successfully started, VSCode seems to run normally. Disabling extensions does not help.

System Info

Performance Marks

What Duration Process Info
start => app.isReady 71 [main] initial startup: true
nls:start => nls:end 0 [main] initial startup: true
require(main.bundle.js) 67 [main] initial startup: true
start crash reporter 2 [main] initial startup: true
serve main IPC handle 1 [main] initial startup: true
create window

prof-hzsgjWke.main.cpuprofile.txt prof-hzsgjWke.renderer.cpuprofile.txt | 20 | [main] | initial startup: true, state: 0ms, widget: 19ms, show: 0ms | | app.isReady => window.loadUrl() | 110 | [main] | initial startup: true | | window.loadUrl() => begin to require(workbench.desktop.main.js) | 35783 | [main->renderer] | NewWindow | | require(workbench.desktop.main.js) | 380 | [renderer] | cached data: NO, node_modules took 0ms | | wait for window config | 1 | [renderer] | - | | init storage (global & workspace) | 12 | [renderer] | - | | init workspace service | 20 | [renderer] | - | | register extensions & spawn extension host | 145 | [renderer] | - | | restore viewlet | 8 | [renderer] | workbench.view.explorer | | restore panel | 0 | [renderer] | - | | restore & resolve visible editors | 38 | [renderer] | 1: workbench.editors.gettingStartedInput | | overall workbench load | 151 | [renderer] | - | | workbench ready | 36521 | [main->renderer] | - | | renderer ready | 560 | [renderer] | - | | shared process connection ready | 243 | [renderer->sharedprocess] | - | | extensions registered | 36715 | [renderer] | - |

Terminal Stats

Name Timestamp Delta Total
code/terminal/willGetTerminalBackend 1694434789966 0 0
code/terminal/didGetTerminalBackend 1694434789966 0 0
code/terminal/willReconnect 1694434789966 0 0
code/terminal/willGetTerminalLayoutInfo 1694434789966 0 0
code/terminal/didGetTerminalLayoutInfo 1694434789968 2 2
code/terminal/didReconnect 1694434789968 0 2
code/terminal/willReplay 1694434789968 0 2
code/terminal/didReplay 1694434789968 0 2
code/terminal/willGetPerformanceMarks 1694434789968 0 2
code/terminal/didGetPerformanceMarks 1694434789972 4 6

Raw Perf Marks: main

Name    Timestamp   Delta   Total
code/timeOrigin 1694434753040.625   0   0
code/didStartMain   1694434753159   118.375 118.375
code/willStartCrashReporter 1694434753165   6   124.375
code/didStartCrashReporter  1694434753167   2   126.375
code/mainAppReady   1694434753230   63  189.375
code/willGenerateNls    1694434753230   0   189.375
code/willLoadMainBundle 1694434753231   1   190.375
code/fork/willLoadCode  1694434753236   5   195.375
code/registerFilesystem/file    1694434753293   57  252.375
code/registerFilesystem/vscode-userdata 1694434753293   0   252.375
code/didLoadMainBundle  1694434753298   5   257.375
code/willStartMainServer    1694434753306   8   265.375
code/didStartMainServer 1694434753307   1   266.375
code/willCreateCodeWindow   1694434753319   12  278.375
code/willRestoreCodeWindowState 1694434753320   1   279.375
code/didRestoreCodeWindowState  1694434753320   0   279.375
code/willCreateCodeBrowserWindow    1694434753320   0   279.375
code/didCreateCodeBrowserWindow 1694434753339   19  298.375
code/willMaximizeCodeWindow 1694434753339   0   298.375
code/didMaximizeCodeWindow  1694434753339   0   298.375
code/didCreateCodeWindow    1694434753339   0   298.375
code/willOpenNewWindow  1694434753340   1   299.375

Raw Perf Marks: localPtyHost

Name    Timestamp   Delta   Total

Raw Perf Marks: renderer

Name    Timestamp   Delta   Total
code/timeOrigin 1694434753341   0   0
code/didStartRenderer   1694434789120   35779   35779
code/willWaitForWindowConfig    1694434789121   1   35780
code/didWaitForWindowConfig 1694434789122   1   35781
code/willShowPartsSplash    1694434789122   0   35781
code/didShowPartsSplash 1694434789122   0   35781
code/willLoadWorkbenchMain  1694434789123   1   35782
code/didLoadWorkbenchMain   1694434789503   380 36162
code/registerFilesystem/file    1694434789506   3   36165
code/registerFilesystem/vscode-userdata 1694434789506   0   36165
code/willInitWorkspaceService   1694434789507   1   36166
code/willInitStorage    1694434789508   1   36167
code/willInitUserConfiguration  1694434789512   4   36171
code/didInitStorage 1694434789520   8   36179
code/didInitUserConfiguration   1694434789523   3   36182
code/willInitWorkspaceConfiguration 1694434789523   0   36182
code/didInitWorkspaceConfiguration  1694434789527   4   36186
code/didInitWorkspaceService    1694434789527   0   36186
code/willStartWorkbench 1694434789529   2   36188
code/LifecyclePhase/Ready   1694434789530   1   36189
code/willCreateWorkbenchContributions/1 1694434789562   32  36221
code/didCreateWorkbenchContributions/1  1694434789568   6   36227
code/willCreateWorkbenchContributions/2 1694434789568   0   36227
code/registerFilesystem/trustedDomains  1694434789570   2   36229
code/registerFilesystem/vscode-local-history    1694434789573   3   36232
code/didCreateWorkbenchContributions/2  1694434789574   1   36233
code/willCreatePart/workbench.parts.titlebar    1694434789590   16  36249
code/didCreatePart/workbench.parts.titlebar 1694434789602   12  36261
code/willCreatePart/workbench.parts.banner  1694434789602   0   36261
code/didCreatePart/workbench.parts.banner   1694434789602   0   36261
code/willCreatePart/workbench.parts.activitybar 1694434789602   0   36261
code/didCreatePart/workbench.parts.activitybar  1694434789604   2   36263
code/willCreatePart/workbench.parts.sidebar 1694434789604   0   36263
code/didCreatePart/workbench.parts.sidebar  1694434789605   1   36264
code/willCreatePart/workbench.parts.editor  1694434789605   0   36264
code/didCreatePart/workbench.parts.editor   1694434789623   18  36282
code/willCreatePart/workbench.parts.panel   1694434789623   0   36282
code/didCreatePart/workbench.parts.panel    1694434789624   1   36283
code/willCreatePart/workbench.parts.auxiliarybar    1694434789624   0   36283
code/didCreatePart/workbench.parts.auxiliarybar 1694434789624   0   36283
code/willCreatePart/workbench.parts.statusbar   1694434789624   0   36283
code/didCreatePart/workbench.parts.statusbar    1694434789625   1   36284
code/didRemovePartsSplash   1694434789642   17  36301
code/willRestoreEditors 1694434789642   0   36301
code/restoreEditors/editorGroupsReady   1694434789654   12  36313
code/willRestoreViewlet 1694434789654   0   36313
code/restoreEditors/editorsToOpenResolved   1694434789662   8   36321
code/didRestoreViewlet  1694434789662   0   36321
code/willRegisterExplorerViews  1694434789662   0   36321
code/willResolveExplorer    1694434789677   15  36336
code/didRegisterExplorerViews   1694434789678   1   36337
code/restoreEditors/editorGroupsRestored    1694434789680   2   36339
code/didRestoreEditors  1694434789680   0   36339
code/didStartWorkbench  1694434789680   0   36339
code/LifecyclePhase/Restored    1694434789680   0   36339
code/willCreateWorkbenchContributions/3 1694434789680   0   36339
code/willConnectSharedProcess   1694434789680   0   36339
code/willLoadExtensions 1694434789729   49  36388
code/didResolveExplorer 1694434789754   25  36413
code/willHandleExtensionPoints  1694434789806   52  36465
code/willHandleExtensionPoint/configurationDefaults 1694434789806   0   36465
code/didHandleExtensionPoint/configurationDefaults  1694434789807   1   36466
code/willHandleExtensionPoint/configuration 1694434789807   0   36466
code/didHandleExtensionPoint/configuration  1694434789821   14  36480
code/willHandleExtensionPoint/jsonValidation    1694434789821   0   36480
code/didHandleExtensionPoint/jsonValidation 1694434789822   1   36481
code/willHandleExtensionPoint/debuggers 1694434789822   0   36481
code/didHandleExtensionPoint/debuggers  1694434789822   0   36481
code/willHandleExtensionPoint/breakpoints   1694434789822   0   36481
code/didHandleExtensionPoint/breakpoints    1694434789822   0   36481
code/willHandleExtensionPoint/notebooks 1694434789822   0   36481
code/didHandleExtensionPoint/notebooks  1694434789822   0   36481
code/willHandleExtensionPoint/notebookRenderer  1694434789822   0   36481
code/didHandleExtensionPoint/notebookRenderer   1694434789823   1   36482
code/willHandleExtensionPoint/notebookPreload   1694434789823   0   36482
code/didHandleExtensionPoint/notebookPreload    1694434789823   0   36482
code/willHandleExtensionPoint/problemPatterns   1694434789823   0   36482
code/didHandleExtensionPoint/problemPatterns    1694434789823   0   36482
code/willHandleExtensionPoint/problemMatchers   1694434789823   0   36482
code/didHandleExtensionPoint/problemMatchers    1694434789824   1   36483
code/willHandleExtensionPoint/taskDefinitions   1694434789824   0   36483
code/didHandleExtensionPoint/taskDefinitions    1694434789825   1   36484
code/willHandleExtensionPoint/terminal  1694434789825   0   36484
code/didHandleExtensionPoint/terminal   1694434789825   0   36484
code/willHandleExtensionPoint/terminalQuickFixes    1694434789825   0   36484
code/didHandleExtensionPoint/terminalQuickFixes 1694434789825   0   36484
code/willHandleExtensionPoint/walkthroughs  1694434789825   0   36484
code/didHandleExtensionPoint/walkthroughs   1694434789825   0   36484
code/willHandleExtensionPoint/commands  1694434789825   0   36484
code/didHandleExtensionPoint/commands   1694434789829   4   36488
code/willHandleExtensionPoint/submenus  1694434789829   0   36488
code/didHandleExtensionPoint/submenus   1694434789829   0   36488
code/willHandleExtensionPoint/menus 1694434789829   0   36488
code/didHandleExtensionPoint/menus  1694434789841   12  36500
code/willHandleExtensionPoint/authentication    1694434789841   0   36500
code/didHandleExtensionPoint/authentication 1694434789841   0   36500
code/willHandleExtensionPoint/languages 1694434789841   0   36500
code/didHandleExtensionPoint/languages  1694434789846   5   36505
code/willHandleExtensionPoint/customEditors 1694434789846   0   36505
code/didHandleExtensionPoint/customEditors  1694434789846   0   36505
code/willHandleExtensionPoint/codeActions   1694434789846   0   36505
code/didHandleExtensionPoint/codeActions    1694434789846   0   36505
code/willHandleExtensionPoint/viewsWelcome  1694434789846   0   36505
code/didHandleExtensionPoint/viewsWelcome   1694434789846   0   36505
code/willHandleExtensionPoint/resourceLabelFormatters   1694434789846   0   36505
code/didHandleExtensionPoint/resourceLabelFormatters    1694434789846   0   36505
code/willHandleExtensionPoint/grammars  1694434789846   0   36505
code/didHandleExtensionPoint/grammars   1694434789847   1   36506
code/willHandleExtensionPoint/colors    1694434789847   0   36506
code/didHandleExtensionPoint/colors 1694434789847   0   36506
code/willHandleExtensionPoint/icons 1694434789847   0   36506
code/didHandleExtensionPoint/icons  1694434789848   1   36507
code/willHandleExtensionPoint/semanticTokenTypes    1694434789848   0   36507
code/didHandleExtensionPoint/semanticTokenTypes 1694434789848   0   36507
code/willHandleExtensionPoint/semanticTokenModifiers    1694434789848   0   36507
code/didHandleExtensionPoint/semanticTokenModifiers 1694434789848   0   36507
code/willHandleExtensionPoint/semanticTokenScopes   1694434789848   0   36507
code/didHandleExtensionPoint/semanticTokenScopes    1694434789848   0   36507
code/willHandleExtensionPoint/themes    1694434789848   0   36507
code/didHandleExtensionPoint/themes 1694434789849   1   36508
code/willHandleExtensionPoint/iconThemes    1694434789849   0   36508
code/didHandleExtensionPoint/iconThemes 1694434789849   0   36508
code/willHandleExtensionPoint/snippets  1694434789849   0   36508
code/didHandleExtensionPoint/snippets   1694434789849   0   36508
code/willHandleExtensionPoint/keybindings   1694434789849   0   36508
code/didHandleExtensionPoint/keybindings    1694434789854   5   36513
code/willHandleExtensionPoint/viewsContainers   1694434789854   0   36513
code/didHandleExtensionPoint/viewsContainers    1694434789864   10  36523
code/willHandleExtensionPoint/views 1694434789864   0   36523
code/didHandleExtensionPoint/views  1694434789871   7   36530
code/willHandleExtensionPoint/remoteHelp    1694434789871   0   36530
code/didHandleExtensionPoint/remoteHelp 1694434789871   0   36530
code/willHandleExtensionPoint/continueEditSession   1694434789871   0   36530
code/didHandleExtensionPoint/continueEditSession    1694434789871   0   36530
code/didHandleExtensionPoints   1694434789871   0   36530
code/didLoadExtensions  1694434789874   3   36533
code/didConnectSharedProcess    1694434789923   49  36582
code/terminal/willGetTerminalBackend    1694434789966   43  36625
code/terminal/didGetTerminalBackend 1694434789966   0   36625
code/terminal/willReconnect 1694434789966   0   36625
code/terminal/willGetTerminalLayoutInfo 1694434789966   0   36625
code/terminal/didGetTerminalLayoutInfo  1694434789968   2   36627
code/terminal/didReconnect  1694434789968   0   36627
code/terminal/willReplay    1694434789968   0   36627
code/terminal/didReplay 1694434789968   0   36627
code/terminal/willGetPerformanceMarks   1694434789968   0   36627
code/terminal/didGetPerformanceMarks    1694434789972   4   36631

Loader Stats

Load AMD-module

Module Duration
vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js 388.8000000002794
vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.nls.js 15.600000000093132
vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/tas-client-umd/lib/tas-client-umd.js 167
vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/vscode-textmate/release/main.js -50550.5
vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/vscode-oniguruma/release/main.js -50550.90000000037

Load commonjs-module

Module Duration

Invoke AMD-module factory

(see attached file as this data made the comment much too long for github to accept) vscode-amd-module-factory.txt

Invoke commonjs-module

Module Duration

Node Cached Data Stats

cached data used

cached data missed

cached data rejected

cached data created (lazy, might need refreshes)

Resource Timing Stats

Name Duration
https://default.exp-tas.com/vscode/ab 439.10000000009313
https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery 609.9000000003725
https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery 1366.1000000000931

prof-hzsgjWke.main.cpuprofile.txt prof-hzsgjWke.renderer.cpuprofile.txt

jrieken commented 1 year ago

| window.loadUrl() => begin to require(workbench.desktop.main.js) | 35783 | [main->renderer] | NewWindow |

@deepak1556 This is another one where creating the renderer is very slow

deepak1556 commented 1 year ago

@mxdr can you perform the following steps to help us get a runtime trace,

1) Closing all running instances of VSCode 2) Start a fresh instance with the following arguments code --trace --trace-category-filter="base,benchmark,browser,content,blink,blink.net,blink.resource,gpu,latency,mojom,navigation,navigation.debug,renderer,renderer_host,startup,toplevel,v8,disabled-by-default-blink.debug,disabled-by-default-mojom" 3) Once the editor is fully loaded, open command palette and run Developer: Stop Tracing, this will generate a trace and provide you the path at which the trace was saved. Attach it to this issue thread.

mxdr commented 1 year ago

@deepak1556 Done, here it is: code-6frz3iih.trace.txt.tar.gz

deepak1556 commented 1 year ago

Thanks for the trace, there are two things that stand out

1) render process is stuck establishing gpu channel for 25s. 2) Main process takes 10s before navigation starts, possibly long IO task

@mxdr can you start with code --disable-gpu and attach the perf marks https://github.com/microsoft/vscode/wiki/Performance-Issues#read-the-startup-timers

mxdr commented 1 year ago

@deepak1556 Sure thing. I ran code --disable-gpu and saved the startup performance output as a markdown file to avoid clogging this page, attached: startup-info-gpu-disabled.md

mxdr commented 1 year ago

Here are profiler files, collected with code --disable-gpu --prof-startup prof-UmCoXyRN.renderer.cpuprofile.txt prof-UmCoXyRN.main.cpuprofile.txt

mxdr commented 1 year ago

Update: I upgraded my display driver from nvidia-driver-525 to nvidia-driver-535 and VSCode now starts much faster. Still not as fast as it used to, though.

deepak1556 commented 1 year ago

Interesting, the perf marks from https://github.com/microsoft/vscode/issues/192766#issuecomment-1715490712 indicate a similar issue to https://github.com/microsoft/vscode/issues/192493

Can you share the perf marks with the launch after updated display drivers. Thanks!

mxdr commented 1 year ago

@deepak1556 After updating display drivers:

prof-e36RhlAo.extHost.cpuprofile.txt prof-e36RhlAo.main.cpuprofile.txt prof-e36RhlAo.renderer.cpuprofile.txt

Startup performance ## System Info * Code: 1.82.1 (6509174151d557a81c9d0b5f8a5a1e9274db5585) * OS: linux(6.2.0-32-generic) * CPUs: 12th Gen Intel(R) Core(TM) i9-12900HK(20 x 3840) * Memory(System): 31.01 GB(24.57GB free) * Memory(Process): 215.44 MB working set(130.92MB private, 1.04MB shared) * VM(likelihood): 0% * Initial Startup: true * Has 0 other windows * Screen Reader Active: false * Empty Workspace: false ## Performance Marks | What | Duration | Process | Info | | --------------------------------------------------------------- | -------- | ------------------------- | ---------------------------------------------------------- | | start => app.isReady | 85 | [main] | initial startup: true | | nls:start => nls:end | 0 | [main] | initial startup: true | | require(main.bundle.js) | 33 | [main] | initial startup: true | | start crash reporter | 2 | [main] | initial startup: true | | serve main IPC handle | 1 | [main] | initial startup: true | | create window | 19 | [main] | initial startup: true, state: 0ms, widget: 19ms, show: 0ms | | app.isReady => window.loadUrl() | 66 | [main] | initial startup: true | | window.loadUrl() => begin to require(workbench.desktop.main.js) | 1117 | [main->renderer] | NewWindow | | require(workbench.desktop.main.js) | 118 | [renderer] | cached data: YES, node_modules took 0ms | | wait for window config | 1 | [renderer] | - | | init storage (global & workspace) | 8 | [renderer] | - | | init workspace service | 18 | [renderer] | - | | register extensions & spawn extension host | 106 | [renderer] | - | | restore viewlet | 17 | [renderer] | workbench.view.explorer | | restore panel | 0 | [renderer] | - | | restore & resolve visible editors | 205 | [renderer] | 1: workbench.editors.untitledEditorInput | | overall workbench load | 286 | [renderer] | - | | workbench ready | 1693 | [main->renderer] | - | | renderer ready | 427 | [renderer] | - | | shared process connection ready | 0 | [renderer->sharedprocess] | - | | extensions registered | 1659 | [renderer] | - | ## Extension Activation Stats | Extension | Eager | Load Code | Call Activate | Finish Activate | Event | By | | ---------------------------------- | ----- | --------- | ------------- | --------------- | -------------------------------------------------------- | ---------------------------------- | | vscode.git | true | 18 | 5 | 44 | * | vscode.git | | vscode.git-base | true | 1 | 0 | 0 | * | vscode.git | | vscode.github | true | 7 | 0 | 1 | * | vscode.github | | ms-python.autopep8 | true | 8 | 0 | 0 | workspaceContains:setup.cfg | ms-python.autopep8 | | ms-python.black-formatter | true | 6 | 0 | 0 | workspaceContains:*.py | ms-python.black-formatter | | ms-python.python | true | 38 | 11 | 73 | workspaceContains:setup.cfg | ms-python.autopep8 | | ms-vscode.makefile-tools | true | 9 | 1 | 290 | workspaceContains:**/makefile,**/Makefile,**/GNUmakefile | ms-vscode.makefile-tools | | vscode.debug-auto-launch | false | 2 | 1 | 0 | onStartupFinished | vscode.debug-auto-launch | | vscode.emmet | false | 4 | 3 | 0 | onLanguage | vscode.emmet | | vscode.extension-editing | false | 5 | 1 | 0 | onLanguage:json | vscode.extension-editing | | vscode.github-authentication | false | 9 | 1 | 1 | onAuthenticationRequest:github | vscode.github-authentication | | vscode.json-language-features | false | 14 | 0 | 136 | onLanguage:json | vscode.json-language-features | | vscode.markdown-language-features | false | 89 | 8 | 146 | onLanguage:markdown | vscode.markdown-language-features | | vscode.markdown-math | false | 15 | 0 | 0 | api | vscode.markdown-language-features | | vscode.merge-conflict | false | 6 | 1 | 1 | onStartupFinished | vscode.merge-conflict | | vscode.microsoft-authentication | false | 9 | 0 | 4 | onAuthenticationRequest:microsoft | vscode.microsoft-authentication | | vscode.npm | false | 7 | 3 | 106 | onLanguage:json | vscode.npm | | dbaeumer.vscode-eslint | false | 8 | 0 | 0 | onStartupFinished | dbaeumer.vscode-eslint | | eamodio.gitlens | false | 28 | 10 | 27 | onStartupFinished | eamodio.gitlens | | esbenp.prettier-vscode | false | 17 | 10 | 1 | onStartupFinished | esbenp.prettier-vscode | | GitHub.copilot | false | 115 | 274 | 868 | onStartupFinished | GitHub.copilot | | ms-python.vscode-pylance | false | 95 | 1 | 722 | api | ms-python.python | | ms-vscode-remote.remote-containers | false | 15 | 0 | 437 | onStartupFinished | ms-vscode-remote.remote-containers | ## Terminal Stats | Name | Timestamp | Delta | Total | | --------------------------------------- | ------------- | ----- | ----- | | code/terminal/willGetTerminalBackend | 1694693595376 | 0 | 0 | | code/terminal/didGetTerminalBackend | 1694693595380 | 4 | 4 | | code/terminal/willReconnect | 1694693595381 | 1 | 5 | | code/terminal/willGetTerminalLayoutInfo | 1694693595381 | 0 | 5 | | code/terminal/didGetTerminalLayoutInfo | 1694693595406 | 25 | 30 | | code/terminal/didReconnect | 1694693595407 | 1 | 31 | | code/terminal/willReplay | 1694693595407 | 0 | 31 | | code/terminal/didReplay | 1694693595407 | 0 | 31 | | code/terminal/willGetPerformanceMarks | 1694693595407 | 0 | 31 | | code/terminal/didGetPerformanceMarks | 1694693595416 | 9 | 40 | ## Raw Perf Marks: main ``` Name Timestamp Delta Total code/timeOrigin 1694693593506.028 0 0 code/didStartMain 1694693593573 66.971923828125 66.971923828125 code/willStartCrashReporter 1694693593579 6 72.971923828125 code/didStartCrashReporter 1694693593581 2 74.971923828125 code/mainAppReady 1694693593658 77 151.971923828125 code/willGenerateNls 1694693593659 1 152.971923828125 code/willLoadMainBundle 1694693593661 2 154.971923828125 code/fork/willLoadCode 1694693593666 5 159.971923828125 code/registerFilesystem/file 1694693593692 26 185.971923828125 code/registerFilesystem/vscode-userdata 1694693593692 0 185.971923828125 code/didLoadMainBundle 1694693593694 2 187.971923828125 code/willStartMainServer 1694693593698 4 191.971923828125 code/didStartMainServer 1694693593699 1 192.971923828125 code/willCreateCodeWindow 1694693593705 6 198.971923828125 code/willRestoreCodeWindowState 1694693593705 0 198.971923828125 code/didRestoreCodeWindowState 1694693593705 0 198.971923828125 code/willCreateCodeBrowserWindow 1694693593705 0 198.971923828125 code/didCreateCodeBrowserWindow 1694693593724 19 217.971923828125 code/willMaximizeCodeWindow 1694693593724 0 217.971923828125 code/didMaximizeCodeWindow 1694693593724 0 217.971923828125 code/didCreateCodeWindow 1694693593724 0 217.971923828125 code/willOpenNewWindow 1694693593724 0 217.971923828125 ``` ## Raw Perf Marks: localPtyHost ``` Name Timestamp Delta Total ``` ## Raw Perf Marks: renderer ``` Name Timestamp Delta Total code/timeOrigin 1694693593725 0 0 code/didStartRenderer 1694693594839 1114 1114 code/willWaitForWindowConfig 1694693594839 0 1114 code/didWaitForWindowConfig 1694693594840 1 1115 code/willShowPartsSplash 1694693594840 0 1115 code/didShowPartsSplash 1694693594841 1 1116 code/willLoadWorkbenchMain 1694693594841 0 1116 code/didLoadWorkbenchMain 1694693594959 118 1234 code/registerFilesystem/file 1694693594960 1 1235 code/registerFilesystem/vscode-userdata 1694693594960 0 1235 code/willInitWorkspaceService 1694693594960 0 1235 code/willInitStorage 1694693594961 1 1236 code/didInitStorage 1694693594969 8 1244 code/willInitUserConfiguration 1694693594971 2 1246 code/didInitUserConfiguration 1694693594973 2 1248 code/willInitWorkspaceConfiguration 1694693594973 0 1248 code/didInitWorkspaceConfiguration 1694693594978 5 1253 code/didInitWorkspaceService 1694693594978 0 1253 code/willStartWorkbench 1694693594980 2 1255 code/LifecyclePhase/Ready 1694693594981 1 1256 code/willCreateWorkbenchContributions/1 1694693595007 26 1282 code/didCreateWorkbenchContributions/1 1694693595012 5 1287 code/willCreateWorkbenchContributions/2 1694693595012 0 1287 code/registerFilesystem/trustedDomains 1694693595013 1 1288 code/registerFilesystem/vscode-local-history 1694693595016 3 1291 code/didCreateWorkbenchContributions/2 1694693595018 2 1293 code/willCreatePart/workbench.parts.titlebar 1694693595019 1 1294 code/didCreatePart/workbench.parts.titlebar 1694693595028 9 1303 code/willCreatePart/workbench.parts.banner 1694693595028 0 1303 code/didCreatePart/workbench.parts.banner 1694693595029 1 1304 code/willCreatePart/workbench.parts.activitybar 1694693595029 0 1304 code/didCreatePart/workbench.parts.activitybar 1694693595030 1 1305 code/willCreatePart/workbench.parts.sidebar 1694693595030 0 1305 code/didCreatePart/workbench.parts.sidebar 1694693595030 0 1305 code/willCreatePart/workbench.parts.editor 1694693595030 0 1305 code/didCreatePart/workbench.parts.editor 1694693595050 20 1325 code/willCreatePart/workbench.parts.panel 1694693595050 0 1325 code/didCreatePart/workbench.parts.panel 1694693595051 1 1326 code/willCreatePart/workbench.parts.auxiliarybar 1694693595051 0 1326 code/didCreatePart/workbench.parts.auxiliarybar 1694693595051 0 1326 code/willCreatePart/workbench.parts.statusbar 1694693595051 0 1326 code/didCreatePart/workbench.parts.statusbar 1694693595052 1 1327 code/didRemovePartsSplash 1694693595060 8 1335 code/willRestoreEditors 1694693595061 1 1336 code/restoreEditors/editorGroupsReady 1694693595064 3 1339 code/willRestoreViewlet 1694693595064 0 1339 code/restoreEditors/editorsToOpenResolved 1694693595081 17 1356 code/didRestoreViewlet 1694693595081 0 1356 code/willRegisterExplorerViews 1694693595081 0 1356 code/willResolveExplorer 1694693595104 23 1379 code/didRegisterExplorerViews 1694693595105 1 1380 code/willLoadExtensions 1694693595126 21 1401 code/willHandleExtensionPoints 1694693595179 53 1454 code/willHandleExtensionPoint/configurationDefaults 1694693595179 0 1454 code/didHandleExtensionPoint/configurationDefaults 1694693595179 0 1454 code/willHandleExtensionPoint/configuration 1694693595179 0 1454 code/didHandleExtensionPoint/configuration 1694693595194 15 1469 code/willHandleExtensionPoint/jsonValidation 1694693595194 0 1469 code/didHandleExtensionPoint/jsonValidation 1694693595194 0 1469 code/willHandleExtensionPoint/debuggers 1694693595194 0 1469 code/didHandleExtensionPoint/debuggers 1694693595194 0 1469 code/willHandleExtensionPoint/breakpoints 1694693595194 0 1469 code/didHandleExtensionPoint/breakpoints 1694693595194 0 1469 code/willHandleExtensionPoint/notebooks 1694693595194 0 1469 code/didHandleExtensionPoint/notebooks 1694693595195 1 1470 code/willHandleExtensionPoint/notebookRenderer 1694693595195 0 1470 code/didHandleExtensionPoint/notebookRenderer 1694693595195 0 1470 code/willHandleExtensionPoint/notebookPreload 1694693595195 0 1470 code/didHandleExtensionPoint/notebookPreload 1694693595195 0 1470 code/willHandleExtensionPoint/problemPatterns 1694693595195 0 1470 code/didHandleExtensionPoint/problemPatterns 1694693595196 1 1471 code/willHandleExtensionPoint/problemMatchers 1694693595196 0 1471 code/didHandleExtensionPoint/problemMatchers 1694693595196 0 1471 code/willHandleExtensionPoint/taskDefinitions 1694693595196 0 1471 code/didHandleExtensionPoint/taskDefinitions 1694693595197 1 1472 code/willHandleExtensionPoint/terminal 1694693595197 0 1472 code/didHandleExtensionPoint/terminal 1694693595197 0 1472 code/willHandleExtensionPoint/terminalQuickFixes 1694693595197 0 1472 code/didHandleExtensionPoint/terminalQuickFixes 1694693595197 0 1472 code/willHandleExtensionPoint/walkthroughs 1694693595197 0 1472 code/didHandleExtensionPoint/walkthroughs 1694693595197 0 1472 code/willHandleExtensionPoint/commands 1694693595197 0 1472 code/didHandleExtensionPoint/commands 1694693595200 3 1475 code/willHandleExtensionPoint/submenus 1694693595200 0 1475 code/didHandleExtensionPoint/submenus 1694693595200 0 1475 code/willHandleExtensionPoint/menus 1694693595200 0 1475 code/didHandleExtensionPoint/menus 1694693595211 11 1486 code/willHandleExtensionPoint/authentication 1694693595211 0 1486 code/didHandleExtensionPoint/authentication 1694693595211 0 1486 code/willHandleExtensionPoint/languages 1694693595211 0 1486 code/didHandleExtensionPoint/languages 1694693595213 2 1488 code/willHandleExtensionPoint/customEditors 1694693595213 0 1488 code/didHandleExtensionPoint/customEditors 1694693595213 0 1488 code/willHandleExtensionPoint/codeActions 1694693595213 0 1488 code/didHandleExtensionPoint/codeActions 1694693595213 0 1488 code/willHandleExtensionPoint/viewsWelcome 1694693595213 0 1488 code/didHandleExtensionPoint/viewsWelcome 1694693595213 0 1488 code/willHandleExtensionPoint/resourceLabelFormatters 1694693595213 0 1488 code/didHandleExtensionPoint/resourceLabelFormatters 1694693595213 0 1488 code/willHandleExtensionPoint/grammars 1694693595213 0 1488 code/didHandleExtensionPoint/grammars 1694693595214 1 1489 code/willHandleExtensionPoint/colors 1694693595214 0 1489 code/didHandleExtensionPoint/colors 1694693595214 0 1489 code/willHandleExtensionPoint/icons 1694693595214 0 1489 code/didHandleExtensionPoint/icons 1694693595215 1 1490 code/willHandleExtensionPoint/semanticTokenTypes 1694693595215 0 1490 code/didHandleExtensionPoint/semanticTokenTypes 1694693595215 0 1490 code/willHandleExtensionPoint/semanticTokenModifiers 1694693595215 0 1490 code/didHandleExtensionPoint/semanticTokenModifiers 1694693595215 0 1490 code/willHandleExtensionPoint/semanticTokenScopes 1694693595215 0 1490 code/didHandleExtensionPoint/semanticTokenScopes 1694693595215 0 1490 code/willHandleExtensionPoint/themes 1694693595215 0 1490 code/didHandleExtensionPoint/themes 1694693595216 1 1491 code/willHandleExtensionPoint/iconThemes 1694693595216 0 1491 code/didHandleExtensionPoint/iconThemes 1694693595216 0 1491 code/willHandleExtensionPoint/snippets 1694693595216 0 1491 code/didHandleExtensionPoint/snippets 1694693595216 0 1491 code/willHandleExtensionPoint/keybindings 1694693595216 0 1491 code/didHandleExtensionPoint/keybindings 1694693595219 3 1494 code/willHandleExtensionPoint/viewsContainers 1694693595219 0 1494 code/didHandleExtensionPoint/viewsContainers 1694693595226 7 1501 code/willHandleExtensionPoint/views 1694693595226 0 1501 code/didHandleExtensionPoint/views 1694693595230 4 1505 code/willHandleExtensionPoint/remoteHelp 1694693595230 0 1505 code/didHandleExtensionPoint/remoteHelp 1694693595230 0 1505 code/willHandleExtensionPoint/continueEditSession 1694693595230 0 1505 code/didHandleExtensionPoint/continueEditSession 1694693595230 0 1505 code/didHandleExtensionPoints 1694693595230 0 1505 code/didLoadExtensions 1694693595232 2 1507 code/restoreEditors/editorGroupsRestored 1694693595266 34 1541 code/didRestoreEditors 1694693595266 0 1541 code/didStartWorkbench 1694693595266 0 1541 code/LifecyclePhase/Restored 1694693595267 1 1542 code/willCreateWorkbenchContributions/3 1694693595267 0 1542 code/willConnectSharedProcess 1694693595267 0 1542 code/terminal/willGetTerminalBackend 1694693595376 109 1651 code/terminal/didGetTerminalBackend 1694693595380 4 1655 code/terminal/willReconnect 1694693595381 1 1656 code/terminal/willGetTerminalLayoutInfo 1694693595381 0 1656 code/terminal/didGetTerminalLayoutInfo 1694693595406 25 1681 code/terminal/didReconnect 1694693595407 1 1682 code/terminal/willReplay 1694693595407 0 1682 code/terminal/didReplay 1694693595407 0 1682 code/terminal/willGetPerformanceMarks 1694693595407 0 1682 code/terminal/didGetPerformanceMarks 1694693595416 9 1691 ``` ## Raw Perf Marks: localExtHost ``` Name Timestamp Delta Total code/timeOrigin 1694693595155.695 0 0 code/fork/start 1694693595204 48.304931640625 48.304931640625 code/fork/willLoadCode 1694693595213 9 57.304931640625 code/extHost/willConnectToRenderer 1694693595264 51 108.304931640625 code/extHost/didConnectToRenderer 1694693595265 1 109.304931640625 code/extHost/didWaitForInitData 1694693595339 74 183.304931640625 code/extHost/didCreateServices 1694693595340 1 184.304931640625 code/extHost/willWaitForConfig 1694693595347 7 191.304931640625 code/extHost/didWaitForConfig 1694693595370 23 214.304931640625 code/extHost/didInitAPI 1694693595370 0 214.304931640625 code/extHost/didInitProxyResolver 1694693595370 0 214.304931640625 code/extHost/ready 1694693595383 13 227.304931640625 code/extHost/willLoadExtensionCode/vscode.extension-editing 1694693595410 27 254.304931640625 code/extHost/didLoadExtensionCode/vscode.extension-editing 1694693595414 4 258.304931640625 code/extHost/willLoadExtensionCode/vscode.json-language-features 1694693595414 0 258.304931640625 code/extHost/didLoadExtensionCode/vscode.json-language-features 1694693595428 14 272.304931640625 code/extHost/willLoadExtensionCode/vscode.npm 1694693595429 1 273.304931640625 code/extHost/didLoadExtensionCode/vscode.npm 1694693595436 7 280.304931640625 code/extHost/willLoadExtensionCode/vscode.emmet 1694693595436 0 280.304931640625 code/extHost/didLoadExtensionCode/vscode.emmet 1694693595440 4 284.304931640625 code/extHost/willActivateExtension/vscode.extension-editing 1694693595440 0 284.304931640625 code/extHost/didActivateExtension/vscode.extension-editing 1694693595441 1 285.304931640625 code/extHost/willActivateExtension/vscode.json-language-features 1694693595441 0 285.304931640625 code/extHost/willActivateExtension/vscode.npm 1694693595445 4 289.304931640625 code/extHost/willActivateExtension/vscode.emmet 1694693595468 23 312.304931640625 code/extHost/didActivateExtension/vscode.emmet 1694693595471 3 315.304931640625 code/extHost/didActivateExtension/vscode.npm 1694693595554 83 398.304931640625 code/extHost/didActivateExtension/vscode.json-language-features 1694693595577 23 421.304931640625 code/extHost/willLoadExtensionCode/vscode.git-base 1694693595582 5 426.304931640625 code/extHost/didLoadExtensionCode/vscode.git-base 1694693595583 1 427.304931640625 code/extHost/willLoadExtensionCode/ms-python.python 1694693595584 1 428.304931640625 code/extHost/didLoadExtensionCode/ms-python.python 1694693595621 37 465.304931640625 code/extHost/willActivateExtension/vscode.git-base 1694693595622 1 466.304931640625 code/extHost/didActivateExtension/vscode.git-base 1694693595622 0 466.304931640625 code/extHost/willActivateExtension/ms-python.python 1694693595637 15 481.304931640625 code/extHost/willLoadExtensionCode/vscode.git 1694693595659 22 503.304931640625 code/extHost/didLoadExtensionCode/vscode.git 1694693595677 18 521.304931640625 code/extHost/willLoadExtensionCode/vscode.github 1694693595677 0 521.304931640625 code/extHost/didLoadExtensionCode/vscode.github 1694693595684 7 528.304931640625 code/extHost/willActivateExtension/vscode.git 1694693595685 1 529.304931640625 code/extHost/didActivateExtension/ms-python.python 1694693595721 36 565.304931640625 code/extHost/didActivateExtension/vscode.git 1694693595734 13 578.304931640625 code/extHost/willActivateExtension/vscode.github 1694693595735 1 579.304931640625 code/extHost/didActivateExtension/vscode.github 1694693595737 2 581.304931640625 code/extHost/willLoadExtensionCode/ms-vscode.makefile-tools 1694693595738 1 582.304931640625 code/extHost/didLoadExtensionCode/ms-vscode.makefile-tools 1694693595747 9 591.304931640625 code/extHost/willLoadExtensionCode/ms-python.autopep8 1694693595766 19 610.304931640625 code/extHost/didLoadExtensionCode/ms-python.autopep8 1694693595774 8 618.304931640625 code/extHost/willLoadExtensionCode/ms-python.black-formatter 1694693595774 0 618.304931640625 code/extHost/didLoadExtensionCode/ms-python.black-formatter 1694693595780 6 624.304931640625 code/extHost/willActivateExtension/ms-vscode.makefile-tools 1694693595784 4 628.304931640625 code/extHost/willActivateExtension/ms-python.autopep8 1694693595786 2 630.304931640625 code/extHost/didActivateExtension/ms-python.autopep8 1694693595786 0 630.304931640625 code/extHost/willActivateExtension/ms-python.black-formatter 1694693595786 0 630.304931640625 code/extHost/didActivateExtension/ms-python.black-formatter 1694693595786 0 630.304931640625 code/extHost/willLoadExtensionCode/vscode.github-authentication 1694693595849 63 693.304931640625 code/extHost/didLoadExtensionCode/vscode.github-authentication 1694693595858 9 702.304931640625 code/extHost/willLoadExtensionCode/ms-python.vscode-pylance 1694693595899 41 743.304931640625 code/extHost/didLoadExtensionCode/ms-python.vscode-pylance 1694693595993 94 837.304931640625 code/extHost/willActivateExtension/vscode.github-authentication 1694693595993 0 837.304931640625 code/extHost/didActivateExtension/vscode.github-authentication 1694693595996 3 840.304931640625 code/extHost/willActivateExtension/ms-python.vscode-pylance 1694693596015 19 859.304931640625 code/extHost/didActivateExtension/ms-vscode.makefile-tools 1694693596075 60 919.304931640625 ``` ## Loader Stats ### Load AMD-module | Module | Duration | | ------------------------------------------------------------------------------------------------------------------- | ------------------ | | vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js | 120.80000000004657 | | vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.nls.js | 21.599999999976717 | | vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/tas-client-umd/lib/tas-client-umd.js | 128 | | vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/vscode-textmate/release/main.js | 159.69999999995343 | | vscode-file://vscode-app/usr/share/code/resources/app/out/../node_modules.asar/vscode-oniguruma/release/main.js | 173.79999999993015 | ### Load commonjs-module | Module | Duration | | ------ | -------- | ### Invoke AMD-module factory (putting this section in a file as the comment became too long otherwise) [module-factory.txt](https://github.com/microsoft/vscode/files/12608635/module-factory.txt) ### Invoke commonjs-module | Module | Duration | | ------ | -------- | ## Node Cached Data Stats ### cached data used ### cached data missed ### cached data rejected ### cached data created (lazy, might need refreshes) ## Resource Timing Stats | Name | Duration | | ------------------------------------------------------------------------ | ------------------ | | https://default.exp-tas.com/vscode/ab | 206.30000000004657 | | https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery | 339.0999999999767 | | https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery | 608.0999999999767 |

whitequark commented 9 months ago

Try this:

code --disable-gpu --disable-software-rasterizer