mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
--debug-port is now --observatory-port (#7680)
This commit is contained in:
parent
3241f643f0
commit
a4a1392c44
@ -226,7 +226,7 @@ class MemoryTest {
|
|||||||
await flutter('build', options: <String>['ios', '--profile']);
|
await flutter('build', options: <String>['ios', '--profile']);
|
||||||
}
|
}
|
||||||
|
|
||||||
int debugPort = await findAvailablePort();
|
int observatoryPort = await findAvailablePort();
|
||||||
|
|
||||||
List<String> runOptions = <String>[
|
List<String> runOptions = <String>[
|
||||||
'-v',
|
'-v',
|
||||||
@ -234,8 +234,8 @@ class MemoryTest {
|
|||||||
'--trace-startup', // wait for the first frame to render
|
'--trace-startup', // wait for the first frame to render
|
||||||
'-d',
|
'-d',
|
||||||
deviceId,
|
deviceId,
|
||||||
'--debug-port',
|
'--observatory-port',
|
||||||
debugPort.toString(),
|
observatoryPort.toString(),
|
||||||
];
|
];
|
||||||
if (testTarget != null)
|
if (testTarget != null)
|
||||||
runOptions.addAll(<String>['-t', testTarget]);
|
runOptions.addAll(<String>['-t', testTarget]);
|
||||||
@ -256,7 +256,7 @@ class MemoryTest {
|
|||||||
deviceId,
|
deviceId,
|
||||||
'--use-existing-app',
|
'--use-existing-app',
|
||||||
], environment: <String, String> {
|
], environment: <String, String> {
|
||||||
'VM_SERVICE_URL': 'http://localhost:$debugPort'
|
'VM_SERVICE_URL': 'http://localhost:$observatoryPort'
|
||||||
});
|
});
|
||||||
|
|
||||||
Map<String, dynamic> endData = await device.getMemoryStats(packageName);
|
Map<String, dynamic> endData = await device.getMemoryStats(packageName);
|
||||||
|
Loading…
Reference in New Issue
Block a user