Switch drive_service from using deprecated version of --record-memory-profile flag. (#86122)

diff --git a/packages/flutter_tools/lib/src/drive/drive_service.dart b/packages/flutter_tools/lib/src/drive/drive_service.dart
index e74dcba..f87198f 100644
--- a/packages/flutter_tools/lib/src/drive/drive_service.dart
+++ b/packages/flutter_tools/lib/src/drive/drive_service.dart
@@ -261,7 +261,7 @@
     if (profileMemory != null) {
       unawaited(_devtoolsLauncher.launch(
         Uri.parse(_vmServiceUri),
-        additionalArguments: <String>['--profile-memory=$profileMemory'],
+        additionalArguments: <String>['--record-memory-profile=$profileMemory'],
       ));
       // When profiling memory the original launch future will never complete.
       await _devtoolsLauncher.processStart;