@codingame/monaco-vscode-performance-service-override 9.0.3 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.contribution.js +5 -6
- package/vscode/src/vs/workbench/contrib/performance/browser/performance.web.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/performance/browser/perfviewEditor.js +15 -15
- package/vscode/src/vs/workbench/contrib/performance/browser/startupTimings.js +5 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-performance-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
3
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
5
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
5
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
7
6
|
import { registerWorkbenchContribution2, Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
@@ -28,7 +27,7 @@ registerAction2(class extends Action2 {
|
|
|
28
27
|
constructor() {
|
|
29
28
|
super({
|
|
30
29
|
id: 'perfview.show',
|
|
31
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(2707, 'Startup Performance')),
|
|
32
31
|
category: Categories.Developer,
|
|
33
32
|
f1: true
|
|
34
33
|
});
|
|
@@ -43,7 +42,7 @@ registerAction2(class PrintServiceCycles extends Action2 {
|
|
|
43
42
|
constructor() {
|
|
44
43
|
super({
|
|
45
44
|
id: 'perf.insta.printAsyncCycles',
|
|
46
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(2708, 'Print Service Cycles')),
|
|
47
46
|
category: Categories.Developer,
|
|
48
47
|
f1: true
|
|
49
48
|
});
|
|
@@ -65,7 +64,7 @@ registerAction2(class PrintServiceTraces extends Action2 {
|
|
|
65
64
|
constructor() {
|
|
66
65
|
super({
|
|
67
66
|
id: 'perf.insta.printTraces',
|
|
68
|
-
title: ( localize2(
|
|
67
|
+
title: ( localize2(2709, 'Print Service Traces')),
|
|
69
68
|
category: Categories.Developer,
|
|
70
69
|
f1: true
|
|
71
70
|
});
|
|
@@ -84,7 +83,7 @@ registerAction2(class PrintEventProfiling extends Action2 {
|
|
|
84
83
|
constructor() {
|
|
85
84
|
super({
|
|
86
85
|
id: 'perf.event.profiling',
|
|
87
|
-
title: ( localize2(
|
|
86
|
+
title: ( localize2(2710, 'Print Emitter Profiles')),
|
|
88
87
|
category: Categories.Developer,
|
|
89
88
|
f1: true
|
|
90
89
|
});
|
|
@@ -99,4 +98,4 @@ registerAction2(class PrintEventProfiling extends Action2 {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
});
|
|
102
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(InputLatencyContrib,
|
|
101
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(InputLatencyContrib, 4 );
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
2
1
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
2
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
3
|
import { BrowserResourcePerformanceMarks, BrowserStartupTimings } from './startupTimings.js';
|
|
5
4
|
|
|
6
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(BrowserResourcePerformanceMarks,
|
|
7
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(BrowserStartupTimings,
|
|
5
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(BrowserResourcePerformanceMarks, 4 );
|
|
6
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(BrowserStartupTimings, 4 );
|
|
@@ -3,7 +3,7 @@ import { localize } from 'vscode/vscode/vs/nls';
|
|
|
3
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
4
|
import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
5
5
|
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
6
|
-
import {
|
|
6
|
+
import { StartupKindToString } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
7
7
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
8
8
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
9
9
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -13,7 +13,7 @@ import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extension
|
|
|
13
13
|
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
14
14
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
15
15
|
import { writeTransientState } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/toggleWordWrap';
|
|
16
|
-
import { LoaderStats
|
|
16
|
+
import { LoaderStats } from 'vscode/vscode/vs/base/common/amd';
|
|
17
17
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
18
18
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
19
19
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -61,7 +61,7 @@ let PerfviewInput = class PerfviewInput extends TextResourceEditorInput {
|
|
|
61
61
|
return PerfviewInput_1.Id;
|
|
62
62
|
}
|
|
63
63
|
constructor(textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService) {
|
|
64
|
-
super(PerfviewContrib.get().getInputUri(), ( localize(
|
|
64
|
+
super(PerfviewContrib.get().getInputUri(), ( localize(6177, "Startup Performance")), undefined, undefined, undefined, textModelResolverService, textFileService, editorService, fileService, labelService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
PerfviewInput = PerfviewInput_1 = ( (__decorate([
|
|
@@ -103,7 +103,7 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
103
103
|
_updateModel() {
|
|
104
104
|
Promise.all([
|
|
105
105
|
this._timerService.whenReady(),
|
|
106
|
-
this._lifecycleService.when(
|
|
106
|
+
this._lifecycleService.when(4 ),
|
|
107
107
|
this._extensionService.whenInstalledExtensionsRegistered(),
|
|
108
108
|
this._terminalService.whenConnected
|
|
109
109
|
]).then(() => {
|
|
@@ -171,7 +171,7 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
171
171
|
table.push(['restore viewlet', metrics.timers.ellapsedViewletRestore, '[renderer]', metrics.viewletId]);
|
|
172
172
|
table.push(['restore panel', metrics.timers.ellapsedPanelRestore, '[renderer]', metrics.panelId]);
|
|
173
173
|
table.push(['restore & resolve visible editors', metrics.timers.ellapsedEditorRestore, '[renderer]', `${metrics.editorIds.length}: ${metrics.editorIds.join(', ')}`]);
|
|
174
|
-
table.push(['create workbench contributions', metrics.timers.ellapsedWorkbenchContributions, '[renderer]', `${(contribTimings.get(
|
|
174
|
+
table.push(['create workbench contributions', metrics.timers.ellapsedWorkbenchContributions, '[renderer]', `${(contribTimings.get(1 )?.length ?? 0) + (contribTimings.get(1 )?.length ?? 0)} blocking startup`]);
|
|
175
175
|
table.push(['overall workbench load', metrics.timers.ellapsedWorkbench, '[renderer]', undefined]);
|
|
176
176
|
table.push(['workbench ready', metrics.ellapsed, '[main->renderer]', undefined]);
|
|
177
177
|
table.push(['renderer ready', metrics.timers.ellapsedRenderer, '[renderer]', undefined]);
|
|
@@ -223,8 +223,8 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
223
223
|
_addWorkbenchContributionsPerfMarksTable(md) {
|
|
224
224
|
md.heading(2, 'Workbench Contributions Blocking Restore');
|
|
225
225
|
const timings = ( (Registry.as(Extensions.Workbench))).timings;
|
|
226
|
-
md.li(`Total (LifecyclePhase.Starting): ${timings.get(
|
|
227
|
-
md.li(`Total (LifecyclePhase.Ready): ${timings.get(
|
|
226
|
+
md.li(`Total (LifecyclePhase.Starting): ${timings.get(1 )?.length} (${timings.get(1 )?.reduce((p, c) => p + c[1], 0)}ms)`);
|
|
227
|
+
md.li(`Total (LifecyclePhase.Ready): ${timings.get(2 )?.length} (${timings.get(2 )?.reduce((p, c) => p + c[1], 0)}ms)`);
|
|
228
228
|
md.blank();
|
|
229
229
|
const marks = this._timerService.getPerformanceMarks().find(e => e[0] === 'renderer')?.[1].filter(e => e.name.startsWith('code/willCreateWorkbenchContribution/1') ||
|
|
230
230
|
e.name.startsWith('code/didCreateWorkbenchContribution/1') ||
|
|
@@ -264,10 +264,10 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
264
264
|
}
|
|
265
265
|
_addCachedDataStats(md) {
|
|
266
266
|
const map = ( (new Map()));
|
|
267
|
-
map.set(
|
|
268
|
-
map.set(
|
|
269
|
-
map.set(
|
|
270
|
-
map.set(
|
|
267
|
+
map.set(63 , []);
|
|
268
|
+
map.set(60 , []);
|
|
269
|
+
map.set(61 , []);
|
|
270
|
+
map.set(62 , []);
|
|
271
271
|
const printLists = (arr) => {
|
|
272
272
|
if (arr) {
|
|
273
273
|
arr.sort();
|
|
@@ -280,13 +280,13 @@ let PerfModelContentProvider = class PerfModelContentProvider {
|
|
|
280
280
|
md.heading(2, 'Node Cached Data Stats');
|
|
281
281
|
md.blank();
|
|
282
282
|
md.heading(3, 'cached data used');
|
|
283
|
-
printLists(map.get(
|
|
283
|
+
printLists(map.get(60 ));
|
|
284
284
|
md.heading(3, 'cached data missed');
|
|
285
|
-
printLists(map.get(
|
|
285
|
+
printLists(map.get(61 ));
|
|
286
286
|
md.heading(3, 'cached data rejected');
|
|
287
|
-
printLists(map.get(
|
|
287
|
+
printLists(map.get(62 ));
|
|
288
288
|
md.heading(3, 'cached data created (lazy, might need refreshes)');
|
|
289
|
-
printLists(map.get(
|
|
289
|
+
printLists(map.get(63 ));
|
|
290
290
|
}
|
|
291
291
|
_addResourceTimingStats(md) {
|
|
292
292
|
const stats = ( (performance.getEntriesByType('resource').map(entry => {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
3
|
-
import {
|
|
3
|
+
import { StartupKindToString } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
4
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
5
5
|
import { IUpdateService } from 'vscode/vscode/vs/platform/update/common/update.service';
|
|
6
6
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
7
7
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
8
|
import { IWorkspaceTrustManagementService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
9
9
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
10
|
-
import { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
11
10
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
12
11
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
13
12
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
@@ -25,13 +24,13 @@ let StartupTimings = class StartupTimings {
|
|
|
25
24
|
this._workspaceTrustService = _workspaceTrustService;
|
|
26
25
|
}
|
|
27
26
|
async _isStandardStartup() {
|
|
28
|
-
if (this._lifecycleService.startupKind !==
|
|
27
|
+
if (this._lifecycleService.startupKind !== 1 ) {
|
|
29
28
|
return StartupKindToString(this._lifecycleService.startupKind);
|
|
30
29
|
}
|
|
31
30
|
if (!this._workspaceTrustService.isWorkspaceTrusted()) {
|
|
32
31
|
return 'Workspace not trusted';
|
|
33
32
|
}
|
|
34
|
-
const activeViewlet = this._paneCompositeService.getActivePaneComposite(
|
|
33
|
+
const activeViewlet = this._paneCompositeService.getActivePaneComposite(0 );
|
|
35
34
|
if (!activeViewlet || activeViewlet.getId() !== VIEWLET_ID) {
|
|
36
35
|
return 'Explorer viewlet not visible';
|
|
37
36
|
}
|
|
@@ -42,9 +41,9 @@ let StartupTimings = class StartupTimings {
|
|
|
42
41
|
if (!isCodeEditor(visibleEditorPanes[0].getControl())) {
|
|
43
42
|
return 'Active editor is not a text editor';
|
|
44
43
|
}
|
|
45
|
-
const activePanel = this._paneCompositeService.getActivePaneComposite(
|
|
44
|
+
const activePanel = this._paneCompositeService.getActivePaneComposite(1 );
|
|
46
45
|
if (activePanel) {
|
|
47
|
-
return `Current active panel : ${this._paneCompositeService.getPaneComposite(activePanel.getId(),
|
|
46
|
+
return `Current active panel : ${this._paneCompositeService.getPaneComposite(activePanel.getId(), 1 )?.name}`;
|
|
48
47
|
}
|
|
49
48
|
const isLatestVersion = await this._updateService.isLatestVersion();
|
|
50
49
|
if (isLatestVersion === false) {
|