Skip to content

Slow Start up - window.loadUrl() => begin to require(workbench.desktop.main.js) takes a lot of time #180385

@av153k

Description

@av153k

From the last two days on my laptop VS code starts very slow.

System Info

  • Code: 1.77.3 (704ed70)
  • OS: win32(10.0.22621)
  • CPUs: 12th Gen Intel(R) Core(TM) i7-1260P(16 x 2496)
  • Memory(System): 15.63 GB(8.03GB free)
  • Memory(Process): 226.24 MB working set(179.31MB private, 1.07MB 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 4076 [main] initial startup: true
nls:start => nls:end 0 [main] initial startup: true
require(main.bundle.js) 136 [main] initial startup: true
start crash reporter 4037 [main] initial startup: true
serve main IPC handle 2 [main] initial startup: true
create window 34 [main] initial startup: true, state: 0ms, widget: 32ms, show: 0ms
app.isReady => window.loadUrl() 225 [main] initial startup: true
window.loadUrl() => begin to require(workbench.desktop.main.js) 13560 [main->renderer] NewWindow
require(workbench.desktop.main.js) 746 [renderer] cached data: NO, node_modules took 0ms
wait for window config 0 [renderer] -
init storage (global & workspace) 43 [renderer] -
init workspace service 98 [renderer] -
register extensions & spawn extension host 432 [renderer] -
restore viewlet 48 [renderer] workbench.view.explorer
restore panel 27 [renderer] workbench.panel.output
restore & resolve visible editors 291 [renderer] 1: workbench.editors.files.fileEditorInput
overall workbench load 599 [renderer] -
workbench ready 19320 [main->renderer] -
renderer ready 1469 [renderer] -
shared process connection ready 0 [renderer->sharedprocess] -
extensions registered 19635 [renderer] -

Raw Perf Marks: main

Name	Timestamp	Delta	Total
code/timeOrigin	1681972236446.607	0	0
code/didStartMain	1681972236547	100.39306640625	100.39306640625
code/willStartCrashReporter	1681972236561	14	114.39306640625
code/didStartCrashReporter	1681972240598	4037	4151.39306640625
code/mainAppReady	1681972240623	25	4176.39306640625
code/willGenerateNls	1681972240623	0	4176.39306640625
code/willLoadMainBundle	1681972240623	0	4176.39306640625
code/fork/willLoadCode	1681972240637	14	4190.39306640625
code/registerFilesystem/file	1681972240742	105	4295.39306640625
code/didLoadMainBundle	1681972240759	17	4312.39306640625
code/willStartMainServer	1681972240776	17	4329.39306640625
code/didStartMainServer	1681972240778	2	4331.39306640625
code/willCreateCodeWindow	1681972240812	34	4365.39306640625
code/willRestoreCodeWindowState	1681972240813	1	4366.39306640625
code/didRestoreCodeWindowState	1681972240813	0	4366.39306640625
code/willCreateCodeBrowserWindow	1681972240813	0	4366.39306640625
code/didCreateCodeBrowserWindow	1681972240845	32	4398.39306640625
code/didCreateCodeWindow	1681972240846	1	4399.39306640625
code/willOpenNewWindow	1681972240848	2	4401.39306640625

Raw Perf Marks: renderer

Name	Timestamp	Delta	Total
code/timeOrigin	1681972240850	0	0
code/didStartRenderer	1681972254398	13548	13548
code/willWaitForWindowConfig	1681972254398	0	13548
code/didWaitForWindowConfig	1681972254398	0	13548
code/willShowPartsSplash	1681972254398	0	13548
code/didShowPartsSplash	1681972254399	1	13549
code/willLoadWorkbenchMain	1681972254408	9	13558
code/didLoadWorkbenchMain	1681972255154	746	14304
code/registerFilesystem/file	1681972255162	8	14312
code/registerFilesystem/vscode-userdata	1681972255162	0	14312
code/willInitWorkspaceService	1681972255165	3	14315
code/willInitStorage	1681972255168	3	14318
code/didInitStorage	1681972255211	43	14361
code/willInitUserConfiguration	1681972255223	12	14373
code/didInitUserConfiguration	1681972255232	9	14382
code/willInitWorkspaceConfiguration	1681972255232	0	14382
code/didInitWorkspaceConfiguration	1681972255262	30	14412
code/didInitWorkspaceService	1681972255263	1	14413
code/willStartWorkbench	1681972255268	5	14418
code/LifecyclePhase/Ready	1681972255271	3	14421
code/willCreateWorkbenchContributions/1	1681972255345	74	14495
code/didCreateWorkbenchContributions/1	1681972255387	42	14537
code/willCreateWorkbenchContributions/2	1681972255387	0	14537
code/registerFilesystem/trustedDomains	1681972255390	3	14540
code/registerFilesystem/vscode-interactive	1681972255393	3	14543
code/registerFilesystem/vscode-local-history	1681972255396	3	14546
code/didCreateWorkbenchContributions/2	1681972255401	5	14551
code/willCreatePart/workbench.parts.titlebar	1681972255406	5	14556
code/didRemovePartsSplash	1681972255416	10	14566
code/didCreatePart/workbench.parts.titlebar	1681972255441	25	14591
code/willCreatePart/workbench.parts.banner	1681972255441	0	14591
code/didCreatePart/workbench.parts.banner	1681972255442	1	14592
code/willCreatePart/workbench.parts.activitybar	1681972255442	0	14592
code/didCreatePart/workbench.parts.activitybar	1681972255447	5	14597
code/willCreatePart/workbench.parts.sidebar	1681972255447	0	14597
code/didCreatePart/workbench.parts.sidebar	1681972255449	2	14599
code/willCreatePart/workbench.parts.editor	1681972255449	0	14599
code/willCreateTextFileEditorControl	1681972255466	17	14616
code/didCreateTextFileEditorControl	1681972255476	10	14626
code/willSetInputToTextFileEditor	1681972255477	1	14627
code/didCreatePart/workbench.parts.editor	1681972255505	28	14655
code/willCreatePart/workbench.parts.panel	1681972255505	0	14655
code/didCreatePart/workbench.parts.panel	1681972255507	2	14657
code/willCreatePart/workbench.parts.auxiliarybar	1681972255507	0	14657
code/didCreatePart/workbench.parts.auxiliarybar	1681972255508	1	14658
code/willCreatePart/workbench.parts.statusbar	1681972255508	0	14658
code/didCreatePart/workbench.parts.statusbar	1681972255511	3	14661
code/willRestoreEditors	1681972255576	65	14726
code/restoreEditors/editorGroupsReady	1681972255587	11	14737
code/willRestoreViewlet	1681972255587	0	14737
code/willRestorePanel	1681972255608	21	14758
code/willResolveTextFileEditorModel	1681972255634	26	14784
code/restoreEditors/editorsToOpenResolved	1681972255635	1	14785
code/didRestoreViewlet	1681972255635	0	14785
code/didRestorePanel	1681972255635	0	14785
code/willRegisterExplorerViews	1681972255635	0	14785
code/willResolveExplorer	1681972255664	29	14814
code/didRegisterExplorerViews	1681972255667	3	14817
code/willLoadExtensions	1681972255750	83	14900
code/didResolveTextFileEditorModel	1681972255817	67	14967
code/didSetInputToTextFileEditor	1681972255849	32	14999
code/restoreEditors/editorGroupsRestored	1681972255867	18	15017
code/didRestoreEditors	1681972255867	0	15017
code/didStartWorkbench	1681972255867	0	15017
code/LifecyclePhase/Restored	1681972255867	0	15017
code/willCreateWorkbenchContributions/3	1681972255867	0	15017
code/willConnectSharedProcess	1681972255869	2	15019
code/willHandleExtensionPoints	1681972255952	83	15102
code/willHandleExtensionPoint/configurationDefaults	1681972255953	1	15103
code/didHandleExtensionPoint/configurationDefaults	1681972255954	1	15104
code/willHandleExtensionPoint/configuration	1681972255954	0	15104
code/didHandleExtensionPoint/configuration	1681972255996	42	15146
code/willHandleExtensionPoint/jsonValidation	1681972255996	0	15146
code/didHandleExtensionPoint/jsonValidation	1681972255997	1	15147
code/willHandleExtensionPoint/debuggers	1681972255997	0	15147
code/didHandleExtensionPoint/debuggers	1681972255997	0	15147
code/willHandleExtensionPoint/breakpoints	1681972255997	0	15147
code/didHandleExtensionPoint/breakpoints	1681972255997	0	15147
code/willHandleExtensionPoint/notebooks	1681972255997	0	15147
code/didHandleExtensionPoint/notebooks	1681972255998	1	15148
code/willHandleExtensionPoint/notebookRenderer	1681972255998	0	15148
code/didHandleExtensionPoint/notebookRenderer	1681972255999	1	15149
code/willHandleExtensionPoint/problemPatterns	1681972255999	0	15149
code/didHandleExtensionPoint/problemPatterns	1681972256000	1	15150
code/willHandleExtensionPoint/problemMatchers	1681972256000	0	15150
code/didHandleExtensionPoint/problemMatchers	1681972256002	2	15152
code/willHandleExtensionPoint/taskDefinitions	1681972256002	0	15152
code/didHandleExtensionPoint/taskDefinitions	1681972256011	9	15161
code/willHandleExtensionPoint/terminal	1681972256011	0	15161
code/didHandleExtensionPoint/terminal	1681972256011	0	15161
code/willHandleExtensionPoint/terminalQuickFixes	1681972256011	0	15161
code/didHandleExtensionPoint/terminalQuickFixes	1681972256011	0	15161
code/willHandleExtensionPoint/walkthroughs	1681972256011	0	15161
code/didHandleExtensionPoint/walkthroughs	1681972256011	0	15161
code/willHandleExtensionPoint/commands	1681972256011	0	15161
code/didHandleExtensionPoint/commands	1681972256017	6	15167
code/willHandleExtensionPoint/submenus	1681972256018	1	15168
code/didHandleExtensionPoint/submenus	1681972256018	0	15168
code/willHandleExtensionPoint/menus	1681972256018	0	15168
code/didHandleExtensionPoint/menus	1681972256040	22	15190
code/willHandleExtensionPoint/authentication	1681972256040	0	15190
code/didHandleExtensionPoint/authentication	1681972256040	0	15190
code/willHandleExtensionPoint/languages	1681972256040	0	15190
code/didHandleExtensionPoint/languages	1681972256070	30	15220
code/willHandleExtensionPoint/customEditors	1681972256070	0	15220
code/didHandleExtensionPoint/customEditors	1681972256070	0	15220
code/willHandleExtensionPoint/codeActions	1681972256070	0	15220
code/didHandleExtensionPoint/codeActions	1681972256070	0	15220
code/willHandleExtensionPoint/viewsWelcome	1681972256070	0	15220
code/didHandleExtensionPoint/viewsWelcome	1681972256070	0	15220
code/willHandleExtensionPoint/grammars	1681972256070	0	15220
code/didHandleExtensionPoint/grammars	1681972256081	11	15231
code/willHandleExtensionPoint/colors	1681972256081	0	15231
code/didHandleExtensionPoint/colors	1681972256083	2	15233
code/willHandleExtensionPoint/semanticTokenTypes	1681972256083	0	15233
code/didHandleExtensionPoint/semanticTokenTypes	1681972256083	0	15233
code/willHandleExtensionPoint/semanticTokenModifiers	1681972256083	0	15233
code/didHandleExtensionPoint/semanticTokenModifiers	1681972256084	1	15234
code/willHandleExtensionPoint/semanticTokenScopes	1681972256084	0	15234
code/didHandleExtensionPoint/semanticTokenScopes	1681972256085	1	15235
code/willHandleExtensionPoint/snippets	1681972256085	0	15235
code/didHandleExtensionPoint/snippets	1681972256085	0	15235
code/willHandleExtensionPoint/keybindings	1681972256085	0	15235
code/didHandleExtensionPoint/keybindings	1681972256105	20	15255
code/willHandleExtensionPoint/themes	1681972256105	0	15255
code/didHandleExtensionPoint/themes	1681972256108	3	15258
code/willHandleExtensionPoint/iconThemes	1681972256108	0	15258
code/didHandleExtensionPoint/iconThemes	1681972256109	1	15259
code/willHandleExtensionPoint/continueEditSession	1681972256109	0	15259
code/didHandleExtensionPoint/continueEditSession	1681972256109	0	15259
code/willHandleExtensionPoint/viewsContainers	1681972256109	0	15259
code/didHandleExtensionPoint/viewsContainers	1681972256147	38	15297
code/willHandleExtensionPoint/views	1681972256147	0	15297
code/didHandleExtensionPoint/views	1681972256172	25	15322
code/didHandleExtensionPoints	1681972256172	0	15322
code/didLoadExtensions	1681972256182	10	15332
code/didResolveExplorer	1681972257045	863	16195

Node Cached Data Stats

cached data used

cached data missed

cached data rejected

cached data created (lazy, might need refreshes)

Generated profiling files

-prof-nTnIkuIL.main.cpuprofile.txt
prof-nTnIkuIL.main.cpuprofile.txt

-prof-nTnIkuIL.renderer.cpuprofile.txt
prof-nTnIkuIL.renderer.cpuprofile.txt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions