@@ -107,8 +107,14 @@ class RunCommand extends RunCommandBase {
107
107
'By default, Flutter will not log skia code.' ,
108
108
)
109
109
..addOption ('trace-whitelist' ,
110
+ hide: true ,
111
+ help: '(deprecated) Use --trace-allowlist instead' ,
112
+ valueHelp: 'foo,bar' ,
113
+ )
114
+ ..addOption ('trace-allowlist' ,
115
+ hide: true ,
110
116
help: 'Filters out all trace events except those that are specified in '
111
- 'this comma separated list of whitelisted prefixes.' ,
117
+ 'this comma separated list of allowed prefixes.' ,
112
118
valueHelp: 'foo,bar' ,
113
119
)
114
120
..addFlag ('endless-trace-buffer' ,
@@ -147,8 +153,8 @@ class RunCommand extends RunCommandBase {
147
153
hide: ! verboseHelp,
148
154
help: 'Pass a list of comma separated flags to the Dart instance at '
149
155
'application startup. Flags passed through this option must be '
150
- 'present on the whitelist defined within the Flutter engine. If '
151
- 'a non-whitelisted flag is encountered, the process will be '
156
+ 'present on the allowlist defined within the Flutter engine. If '
157
+ 'a disallowed flag is encountered, the process will be '
152
158
'terminated immediately.\n\n '
153
159
'This flag is not available on the stable channel and is only '
154
160
'applied in debug and profile modes. This option should only '
@@ -348,6 +354,14 @@ class RunCommand extends RunCommandBase {
348
354
}
349
355
}
350
356
357
+ String get _traceAllowlist {
358
+ final String deprecatedValue = stringArg ('trace-whitelist' );
359
+ if (deprecatedValue != null ) {
360
+ globals.printError ('--trace-whitelist has been deprecated, use --trace-allowlist instead' );
361
+ }
362
+ return stringArg ('trace-allowlist' ) ?? deprecatedValue;
363
+ }
364
+
351
365
DebuggingOptions _createDebuggingOptions () {
352
366
final BuildInfo buildInfo = getBuildInfo ();
353
367
final int browserDebugPort = featureFlags.isWebEnabled && argResults.wasParsed ('web-browser-debug-port' )
@@ -374,7 +388,7 @@ class RunCommand extends RunCommandBase {
374
388
enableSoftwareRendering: boolArg ('enable-software-rendering' ),
375
389
skiaDeterministicRendering: boolArg ('skia-deterministic-rendering' ),
376
390
traceSkia: boolArg ('trace-skia' ),
377
- traceWhitelist : stringArg ( 'trace-whitelist' ) ,
391
+ traceAllowlist : _traceAllowlist ,
378
392
traceSystrace: boolArg ('trace-systrace' ),
379
393
endlessTraceBuffer: boolArg ('endless-trace-buffer' ),
380
394
dumpSkpOnShaderCompilation: dumpSkpOnShaderCompilation,
0 commit comments