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
932059b9
Commit
932059b9
authored
8 years ago
by
Ryan Macnak
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also forward Observatory port for iOS in profile mode. (#4952)
parent
0dacc5e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+11
-5
No files found.
packages/flutter_tools/lib/src/ios/devices.dart
View file @
932059b9
...
...
@@ -232,7 +232,7 @@ class IOSDevice extends Device {
int
localObsPort
;
int
localDiagPort
;
if
(!
debuggingOptions
.
debuggingEnabled
||
mode
==
BuildMode
.
release
)
{
if
(!
debuggingOptions
.
debuggingEnabled
)
{
// If debugging is not enabled, just launch the application and continue.
printTrace
(
"Debugging is not enabled"
);
installationResult
=
await
runCommandAndStreamOutput
(
launchCommand
,
trace:
true
);
...
...
@@ -253,11 +253,17 @@ class IOSDevice extends Device {
printTrace
(
"Application launched on the device. Attempting to forward ports."
);
return
Future
.
wait
(<
Future
<
int
>>[
_acquireAndForwardPort
(
ProtocolDiscovery
.
kObservatoryService
,
debuggingOptions
.
observatoryPort
),
_acquireAndForwardPort
(
ProtocolDiscovery
.
kDiagnosticService
,
debuggingOptions
.
diagnosticPort
),
]);
Future
<
int
>
forwardObsPort
=
_acquireAndForwardPort
(
ProtocolDiscovery
.
kObservatoryService
,
debuggingOptions
.
observatoryPort
);
Future
<
int
>
forwardDiagPort
;
if
(
debuggingOptions
.
buildMode
==
BuildMode
.
debug
)
{
forwardDiagPort
=
_acquireAndForwardPort
(
ProtocolDiscovery
.
kDiagnosticService
,
debuggingOptions
.
diagnosticPort
);
}
else
{
forwardDiagPort
=
new
Future
.
value
(
null
);
}
return
Future
.
wait
(<
Future
<
int
>>[
forwardObsPort
,
forwardDiagPort
]);
});
printTrace
(
"Local Observatory Port:
${ports[0]}
"
);
...
...
This diff is collapsed.
Click to expand it.
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