diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index fb48937096..4c43074e44 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -226,7 +226,7 @@ class MemoryTest { await flutter('build', options: ['ios', '--profile']); } - int debugPort = await findAvailablePort(); + int observatoryPort = await findAvailablePort(); List runOptions = [ '-v', @@ -234,8 +234,8 @@ class MemoryTest { '--trace-startup', // wait for the first frame to render '-d', deviceId, - '--debug-port', - debugPort.toString(), + '--observatory-port', + observatoryPort.toString(), ]; if (testTarget != null) runOptions.addAll(['-t', testTarget]); @@ -256,7 +256,7 @@ class MemoryTest { deviceId, '--use-existing-app', ], environment: { - 'VM_SERVICE_URL': 'http://localhost:$debugPort' + 'VM_SERVICE_URL': 'http://localhost:$observatoryPort' }); Map endData = await device.getMemoryStats(packageName);