Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5041ff1

Browse files
authored
support endless trace buffer (#16520)
1 parent c3b5072 commit 5041ff1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

shell/platform/android/io/flutter/app/FlutterActivityDelegate.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ private static String[] getArgsFromIntent(Intent intent) {
317317
if (intent.getBooleanExtra("disable-service-auth-codes", false)) {
318318
args.add("--disable-service-auth-codes");
319319
}
320+
if (intent.getBooleanExtra("endless-trace-buffer", false)) {
321+
args.add("--endless-trace-buffer");
322+
}
320323
// NOTE: all flags provided with this argument are subject to filtering
321324
// based on a whitelist in shell/common/switches.cc. If any flag provided
322325
// is not present in the whitelist, the process will immediately

shell/platform/android/io/flutter/embedding/engine/FlutterShellArgs.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class FlutterShellArgs {
2626
public static final String ARG_START_PAUSED = "--start-paused";
2727
public static final String ARG_KEY_DISABLE_SERVICE_AUTH_CODES = "disable-service-auth-codes";
2828
public static final String ARG_DISABLE_SERVICE_AUTH_CODES = "--disable-service-auth-codes";
29+
public static final String ARG_KEY_ENDLESS_TRACE_BUFFER = "endless-trace-buffer";
30+
public static final String ARG_ENDLESS_TRACE_BUFFER = "--endless-trace-buffer";
2931
public static final String ARG_KEY_USE_TEST_FONTS = "use-test-fonts";
3032
public static final String ARG_USE_TEST_FONTS = "--use-test-fonts";
3133
public static final String ARG_KEY_ENABLE_DART_PROFILING = "enable-dart-profiling";
@@ -71,6 +73,9 @@ public static FlutterShellArgs fromIntent(@NonNull Intent intent) {
7173
if (intent.getBooleanExtra(ARG_KEY_DISABLE_SERVICE_AUTH_CODES, false)) {
7274
args.add(ARG_DISABLE_SERVICE_AUTH_CODES);
7375
}
76+
if (intent.getBooleanExtra(ARG_KEY_ENDLESS_TRACE_BUFFER, false)) {
77+
args.add(ARG_ENDLESS_TRACE_BUFFER);
78+
}
7479
if (intent.getBooleanExtra(ARG_KEY_USE_TEST_FONTS, false)) {
7580
args.add(ARG_USE_TEST_FONTS);
7681
}

0 commit comments

Comments
 (0)