Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e38efc89
Unverified
Commit
e38efc89
authored
Jan 29, 2019
by
Chinmay Garde
Committed by
GitHub
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag to enable tracing to systrace. (#27208)
parent
d2a2a5cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+2
-0
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+6
-0
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-0
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
e38efc89
...
...
@@ -428,6 +428,8 @@ class AndroidDevice extends Device {
cmd
.
addAll
(<
String
>[
'--ez'
,
'skia-deterministic-rendering'
,
'true'
]);
if
(
debuggingOptions
.
traceSkia
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'trace-skia'
,
'true'
]);
if
(
debuggingOptions
.
traceSystrace
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'trace-systrace'
,
'true'
]);
if
(
debuggingOptions
.
debuggingEnabled
)
{
if
(
debuggingOptions
.
buildInfo
.
isDebug
)
cmd
.
addAll
(<
String
>[
'--ez'
,
'enable-checked-mode'
,
'true'
]);
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
e38efc89
...
...
@@ -90,6 +90,11 @@ class RunCommand extends RunCommandBase {
help:
'Enable tracing of Skia code. This is useful when debugging '
'the GPU thread. By default, Flutter will not log skia code.'
,
)
..
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).'
,
)
..
addFlag
(
'await-first-frame-when-tracing'
,
defaultsTo:
true
,
help:
'Whether to wait for the first frame when tracing startup ("--trace-startup"), '
...
...
@@ -249,6 +254,7 @@ class RunCommand extends RunCommandBase {
enableSoftwareRendering:
argResults
[
'enable-software-rendering'
],
skiaDeterministicRendering:
argResults
[
'skia-deterministic-rendering'
],
traceSkia:
argResults
[
'trace-skia'
],
traceSystrace:
argResults
[
'trace-systrace'
],
observatoryPort:
observatoryPort
,
);
}
...
...
packages/flutter_tools/lib/src/device.dart
View file @
e38efc89
...
...
@@ -356,6 +356,7 @@ class DebuggingOptions {
this
.
enableSoftwareRendering
=
false
,
this
.
skiaDeterministicRendering
=
false
,
this
.
traceSkia
=
false
,
this
.
traceSystrace
=
false
,
this
.
useTestFonts
=
false
,
this
.
observatoryPort
,
})
:
debuggingEnabled
=
true
;
...
...
@@ -367,6 +368,7 @@ class DebuggingOptions {
enableSoftwareRendering
=
false
,
skiaDeterministicRendering
=
false
,
traceSkia
=
false
,
traceSystrace
=
false
,
observatoryPort
=
null
;
final
bool
debuggingEnabled
;
...
...
@@ -376,6 +378,7 @@ class DebuggingOptions {
final
bool
enableSoftwareRendering
;
final
bool
skiaDeterministicRendering
;
final
bool
traceSkia
;
final
bool
traceSystrace
;
final
bool
useTestFonts
;
final
int
observatoryPort
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment