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
b8dd6bdd
Unverified
Commit
b8dd6bdd
authored
Feb 06, 2020
by
Gityuan
Committed by
GitHub
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support endless recorder for timeline (#47419)
parent
b16fd13f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-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
+8
-0
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-0
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
b8dd6bdd
...
...
@@ -582,6 +582,8 @@ class AndroidDevice extends Device {
...<
String
>[
'--ez'
,
'trace-skia'
,
'true'
],
if
(
debuggingOptions
.
traceSystrace
)
...<
String
>[
'--ez'
,
'trace-systrace'
,
'true'
],
if
(
debuggingOptions
.
endlessTraceBuffer
)
...<
String
>[
'--ez'
,
'endless-trace-buffer'
,
'true'
],
if
(
debuggingOptions
.
dumpSkpOnShaderCompilation
)
...<
String
>[
'--ez'
,
'dump-skp-on-shader-compilation'
,
'true'
],
if
(
debuggingOptions
.
cacheSkSL
)
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
b8dd6bdd
...
...
@@ -102,6 +102,13 @@ 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
(
'endless-trace-buffer'
,
negatable:
false
,
help:
'Enable tracing to the endless tracer. This is useful when '
'recording huge amounts of traces. If we need to use endless buffer to '
'record startup traces, we can combine the ("--trace-startup"). '
'For exemple, flutter run --trace-startup --endless-trace-buffer. '
,
)
..
addFlag
(
'trace-systrace'
,
negatable:
false
,
help:
'Enable tracing to the system tracer. This is only useful on '
...
...
@@ -350,6 +357,7 @@ class RunCommand extends RunCommandBase {
skiaDeterministicRendering:
boolArg
(
'skia-deterministic-rendering'
),
traceSkia:
boolArg
(
'trace-skia'
),
traceSystrace:
boolArg
(
'trace-systrace'
),
endlessTraceBuffer:
boolArg
(
'endless-trace-buffer'
),
dumpSkpOnShaderCompilation:
dumpSkpOnShaderCompilation
,
cacheSkSL:
cacheSkSL
,
deviceVmServicePort:
deviceVmservicePort
,
...
...
packages/flutter_tools/lib/src/device.dart
View file @
b8dd6bdd
...
...
@@ -525,6 +525,7 @@ class DebuggingOptions {
this
.
skiaDeterministicRendering
=
false
,
this
.
traceSkia
=
false
,
this
.
traceSystrace
=
false
,
this
.
endlessTraceBuffer
=
false
,
this
.
dumpSkpOnShaderCompilation
=
false
,
this
.
cacheSkSL
=
false
,
this
.
useTestFonts
=
false
,
...
...
@@ -554,6 +555,7 @@ class DebuggingOptions {
skiaDeterministicRendering
=
false
,
traceSkia
=
false
,
traceSystrace
=
false
,
endlessTraceBuffer
=
false
,
dumpSkpOnShaderCompilation
=
false
,
verboseSystemLogs
=
false
,
hostVmServicePort
=
null
,
...
...
@@ -571,6 +573,7 @@ class DebuggingOptions {
final
bool
skiaDeterministicRendering
;
final
bool
traceSkia
;
final
bool
traceSystrace
;
final
bool
endlessTraceBuffer
;
final
bool
dumpSkpOnShaderCompilation
;
final
bool
cacheSkSL
;
final
bool
useTestFonts
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
b8dd6bdd
...
...
@@ -327,6 +327,7 @@ class IOSDevice extends Device {
if
(
debuggingOptions
.
enableSoftwareRendering
)
'--enable-software-rendering'
,
if
(
debuggingOptions
.
skiaDeterministicRendering
)
'--skia-deterministic-rendering'
,
if
(
debuggingOptions
.
traceSkia
)
'--trace-skia'
,
if
(
debuggingOptions
.
endlessTraceBuffer
)
'--endless-trace-buffer'
,
if
(
debuggingOptions
.
dumpSkpOnShaderCompilation
)
'--dump-skp-on-shader-compilation'
,
if
(
debuggingOptions
.
verboseSystemLogs
)
'--verbose-logging'
,
if
(
debuggingOptions
.
cacheSkSL
)
'--cache-sksl'
,
...
...
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