Skip to content

Commit

Permalink
Pass run and drive --trace-systrace for iOS (#105321)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman authored Jun 3, 2022
1 parent 0895130 commit 003f2b6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/flutter_tools/lib/src/commands/run.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/flutter_tools/lib/src/ios/devices.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}"',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ void main() {
'--null-assertions',
'--native-null-assertions',
'--enable-impeller',
'--trace-systrace',
'--enable-software-rendering',
'--skia-deterministic-rendering',
]), throwsToolExit());
Expand All @@ -238,6 +239,7 @@ void main() {
expect(options.nullAssertions, true);
expect(options.nativeNullAssertions, true);
expect(options.enableImpeller, true);
expect(options.traceSystrace, true);
expect(options.enableSoftwareRendering, true);
expect(options.skiaDeterministicRendering, true);
}, overrides: <Type, Generator>{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ void main() {
'--null-assertions',
'--native-null-assertions',
'--enable-impeller',
'--trace-systrace',
'--enable-software-rendering',
'--skia-deterministic-rendering',
]), throwsToolExit());
Expand All @@ -748,6 +749,7 @@ void main() {
expect(options.verboseSystemLogs, true);
expect(options.nullAssertions, true);
expect(options.nativeNullAssertions, true);
expect(options.traceSystrace, true);
expect(options.enableImpeller, true);
expect(options.enableSoftwareRendering, true);
expect(options.skiaDeterministicRendering, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ void main() {
'--enable-checked-mode',
'--verify-entry-points',
'--enable-software-rendering',
'--trace-systrace',
'--skia-deterministic-rendering',
'--trace-skia',
'--endless-trace-buffer',
Expand Down

0 comments on commit 003f2b6

Please sign in to comment.