remove --prof-modules-flag, adopt new loader, https://github.com/microsoft/vscode/issues/62643

This commit is contained in:
Johannes Rieken
2019-06-05 15:03:05 +02:00
parent 98c36e8516
commit ee070dc2db
7 changed files with 73 additions and 108 deletions
@@ -35,13 +35,7 @@ bootstrapWindow.load([
showPartsSplash(windowConfig);
},
beforeLoaderConfig: function (windowConfig, loaderConfig) {
loaderConfig.recordStats = !!windowConfig['prof-modules'];
if (loaderConfig.nodeCachedData) {
const onNodeCachedData = window['MonacoEnvironment'].onNodeCachedData = [];
loaderConfig.nodeCachedData.onData = function () {
onNodeCachedData.push(arguments);
};
}
loaderConfig.recordStats = true;
},
beforeRequire: function () {
perf.mark('willLoadWorkbenchMain');