Pass run and drive --trace-systrace for iOS (#105321)

This commit is contained in:
Jenn Magder
2022-06-03 16:48:11 -07:00
committed by GitHub
parent 0895130e51
commit 003f2b69d2
5 changed files with 8 additions and 1 deletions

View File

@@ -112,7 +112,8 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
..addFlag('trace-systrace',
negatable: false,
help: 'Enable tracing to the system tracer. This is only useful on '
'platforms where such a tracer is available (Android and Fuchsia).',
'platforms where such a tracer is available (Android, iOS, '
'macOS and Fuchsia).',
)
..addFlag('trace-skia',
negatable: false,

View File

@@ -361,6 +361,7 @@ class IOSDevice extends Device {
'--verify-entry-points',
],
if (debuggingOptions.enableSoftwareRendering) '--enable-software-rendering',
if (debuggingOptions.traceSystrace) '--trace-systrace',
if (debuggingOptions.skiaDeterministicRendering) '--skia-deterministic-rendering',
if (debuggingOptions.traceSkia) '--trace-skia',
if (debuggingOptions.traceAllowlist != null) '--trace-allowlist="${debuggingOptions.traceAllowlist}"',