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
990f37a6
Commit
990f37a6
authored
Dec 03, 2015
by
Eric Seidel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #703 from eseidelGoogle/trace_startup
Add support for passing --trace-startup on Android
parents
31203a90
4eee2e4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
start.dart
packages/flutter_tools/lib/src/commands/start.dart
+5
-0
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-0
No files found.
packages/flutter_tools/lib/src/commands/start.dart
View file @
990f37a6
...
...
@@ -27,6 +27,10 @@ class StartCommand extends FlutterCommand {
negatable:
true
,
defaultsTo:
true
,
help:
'Toggle Dart
\'
s checked mode.'
);
argParser
.
addFlag
(
'trace-startup'
,
negatable:
true
,
defaultsTo:
false
,
help:
'Start tracing during startup.'
);
argParser
.
addOption
(
'target'
,
defaultsTo:
''
,
abbr:
't'
,
...
...
@@ -101,6 +105,7 @@ class StartCommand extends FlutterCommand {
if
(
device
.
startBundle
(
package
,
localBundlePath
,
poke:
poke
,
checked:
argResults
[
'checked'
],
traceStartup:
argResults
[
'trace-startup'
],
route:
argResults
[
'route'
]))
startedSomething
=
true
;
}
...
...
packages/flutter_tools/lib/src/device.dart
View file @
990f37a6
...
...
@@ -771,6 +771,7 @@ class AndroidDevice extends Device {
bool
startBundle
(
AndroidApk
apk
,
String
bundlePath
,
{
bool
poke
,
bool
checked
,
bool
traceStartup
,
String
route
})
{
logging
.
fine
(
'
$this
startBundle'
);
...
...
@@ -792,6 +793,8 @@ class AndroidDevice extends Device {
]);
if
(
checked
)
cmd
.
addAll
([
'--ez'
,
'enable-checked-mode'
,
'true'
]);
if
(
traceStartup
)
cmd
.
addAll
([
'--ez'
,
'trace-startup'
,
'true'
]);
if
(
route
!=
null
)
cmd
.
addAll
([
'--es'
,
'route'
,
route
]);
cmd
.
add
(
apk
.
launchActivity
);
...
...
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