Add `--prof-v8-extensions` flag (see #112393)

上级 c927a801
...@@ -28,6 +28,7 @@ export interface NativeParsedArgs { ...@@ -28,6 +28,7 @@ export interface NativeParsedArgs {
'prof-startup'?: boolean; 'prof-startup'?: boolean;
'prof-startup-prefix'?: string; 'prof-startup-prefix'?: string;
'prof-append-timers'?: string; 'prof-append-timers'?: string;
'prof-v8-extensions'?: boolean;
verbose?: boolean; verbose?: boolean;
trace?: boolean; trace?: boolean;
'trace-category-filter'?: string; 'trace-category-filter'?: string;
......
...@@ -66,6 +66,7 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = { ...@@ -66,6 +66,7 @@ export const OPTIONS: OptionDescriptions<Required<NativeParsedArgs>> = {
'prof-startup': { type: 'boolean', cat: 't', description: localize('prof-startup', "Run CPU profiler during startup") }, 'prof-startup': { type: 'boolean', cat: 't', description: localize('prof-startup', "Run CPU profiler during startup") },
'prof-append-timers': { type: 'string' }, 'prof-append-timers': { type: 'string' },
'prof-startup-prefix': { type: 'string' }, 'prof-startup-prefix': { type: 'string' },
'prof-v8-extensions': { type: 'boolean' },
'disable-extensions': { type: 'boolean', deprecates: 'disableExtensions', cat: 't', description: localize('disableExtensions', "Disable all installed extensions.") }, 'disable-extensions': { type: 'boolean', deprecates: 'disableExtensions', cat: 't', description: localize('disableExtensions', "Disable all installed extensions.") },
'disable-extension': { type: 'string[]', cat: 't', args: 'extension-id', description: localize('disableExtension', "Disable an extension.") }, 'disable-extension': { type: 'string[]', cat: 't', args: 'extension-id', description: localize('disableExtension', "Disable an extension.") },
'sync': { type: 'string', cat: 't', description: localize('turn sync', "Turn sync on or off"), args: ['on', 'off'] }, 'sync': { type: 'string', cat: 't', description: localize('turn sync', "Turn sync on or off"), args: ['on', 'off'] },
......
...@@ -202,6 +202,10 @@ export class LocalProcessExtensionHost implements IExtensionHost { ...@@ -202,6 +202,10 @@ export class LocalProcessExtensionHost implements IExtensionHost {
opts.execArgv = ['--inspect-port=0']; opts.execArgv = ['--inspect-port=0'];
} }
if (this._environmentService.args['prof-v8-extensions']) {
opts.execArgv.unshift('--prof');
}
// On linux crash reporter needs to be started on child node processes explicitly // On linux crash reporter needs to be started on child node processes explicitly
if (platform.isLinux) { if (platform.isLinux) {
const crashReporterStartOptions: CrashReporterStartOptions = { const crashReporterStartOptions: CrashReporterStartOptions = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册