Skip to content

Commit f572364

Browse files
committed
eng - change --performance into --prof-modules because that's what it is
1 parent 8e8b864 commit f572364

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/vs/platform/environment/common/environment.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export interface ParsedArgs {
2525
'reuse-window'?: boolean;
2626
locale?: string;
2727
'user-data-dir'?: string;
28-
performance?: boolean;
2928
'prof-startup'?: string;
3029
'prof-startup-prefix'?: string;
3130
'prof-append-timers'?: string;
31+
'prof-modules'?: string;
3232
verbose?: boolean;
3333
trace?: boolean;
3434
'trace-category-filter'?: string;
@@ -126,7 +126,6 @@ export interface IEnvironmentService {
126126
isBuilt: boolean;
127127
wait: boolean;
128128
status: boolean;
129-
performance: boolean;
130129

131130
// logging
132131
log?: string;

src/vs/platform/environment/node/argv.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const options: minimist.Opts = {
5151
'unity-launch',
5252
'reuse-window',
5353
'open-url',
54-
'performance',
5554
'prof-startup',
55+
'prof-code-loading',
5656
'verbose',
5757
'logExtensionHostCommunication',
5858
'disable-extensions',
@@ -175,8 +175,8 @@ const troubleshootingHelp: { [name: string]: string; } = {
175175
'--verbose': localize('verbose', "Print verbose output (implies --wait)."),
176176
'--log <level>': localize('log', "Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn', 'info', 'debug', 'trace', 'off'."),
177177
'-s, --status': localize('status', "Print process usage and diagnostics information."),
178-
'-p, --performance': localize('performance', "Start with the 'Developer: Startup Performance' command enabled."),
179-
'--prof-startup': localize('prof-startup', "Run CPU profiler during startup"),
178+
'--prof-startup': localize('prof-startup', "Run CPU profilers during startup."),
179+
'--prof-modules': localize('prof-modules', "Capture performance markers while loading JS modules and print them with 'F1 > Developer: Startup Performance'"),
180180
'--disable-extensions': localize('disableExtensions', "Disable all installed extensions."),
181181
'--disable-extension <extension-id>': localize('disableExtension', "Disable an extension."),
182182
'--inspect-extensions': localize('inspect-extensions', "Allow debugging and profiling of extensions. Check the developer tools for the connection URI."),
@@ -265,4 +265,4 @@ export function hasArgs(arg: string | string[] | undefined): boolean {
265265
return true;
266266
}
267267
return false;
268-
}
268+
}

src/vs/platform/environment/node/environmentService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ export class EnvironmentService implements IEnvironmentService {
222222

223223
get logExtensionHostCommunication(): boolean { return !!this._args.logExtensionHostCommunication; }
224224

225-
get performance(): boolean { return !!this._args.performance; }
226225
get status(): boolean { return !!this._args.status; }
227226

228227
@memoize

src/vs/workbench/parts/performance/electron-browser/perfviewEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class PerfModelContentProvider implements ITextModelContentProvider {
104104
]).then(([metrics]) => {
105105
if (!this._model.isDisposed()) {
106106

107-
let stats = this._envService.performance ? LoaderStats.get() : undefined;
107+
let stats = this._envService.args['prof-modules'] ? LoaderStats.get() : undefined;
108108
let md = new MarkdownBuilder();
109109
this._addSummary(md, metrics);
110110
md.blank();

0 commit comments

Comments
 (0)