From 9b06776b0ebb621daf85db0b92943c9f5de9fa40 Mon Sep 17 00:00:00 2001 From: Derek Xu Date: Fri, 13 Oct 2023 12:47:51 -0400 Subject: [PATCH] Use --timeline_recorder=systrace instead of --systrace_timeline (flutter/engine#46884) `--systrace_timeline` is redundant and makes the `getFlagList` VM Service RPC not return `timeline_recorder=systrace` (https://github.com/flutter/devtools/issues/6524#issuecomment-1760090526), so we would like to deprecate and remove it. --- engine/src/flutter/runtime/dart_vm.cc | 3 +-- .../flutter/shell/platform/fuchsia/dart_runner/dart_runner.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/runtime/dart_vm.cc b/engine/src/flutter/runtime/dart_vm.cc index 152a4cd666..379243773c 100644 --- a/engine/src/flutter/runtime/dart_vm.cc +++ b/engine/src/flutter/runtime/dart_vm.cc @@ -95,9 +95,8 @@ static const char* kDartEndlessTraceBufferArgs[]{ "--timeline_recorder=endless", }; -// This is the same as --timeline_recorder=systrace. static const char* kDartSystraceTraceBufferArgs[] = { - "--systrace_timeline", + "--timeline_recorder=systrace", }; static std::string DartFileRecorderArgs(const std::string& path) { diff --git a/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_runner.cc b/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_runner.cc index 508473e9f3..012badf098 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_runner.cc +++ b/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_runner.cc @@ -41,7 +41,7 @@ namespace { const char* kDartVMArgs[] = { // clang-format off - "--systrace_timeline", + "--timeline_recorder=systrace", "--timeline_streams=Compiler,Dart,Debugger,Embedder,GC,Isolate,VM", #if defined(AOT_RUNTIME)