mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Merge pull request #112777 from microsoft/alex/prof-v8-extensions
Add `--prof-v8-extensions` flag
This commit is contained in:
commit
2df64d27dd
|
@ -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>> = {
|
||||||
'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 {
|
||||||
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 = {
|
||||||
|
|
Loading…
Reference in a new issue