mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Convert the enable-dart-profiling to a shell argument in SkyActivity. (flutter/engine#3292)
This commit is contained in:
parent
ea4e307218
commit
7764bbac05
@ -34,6 +34,9 @@ public class SkyActivity extends Activity {
|
||||
if (intent.getBooleanExtra("start-paused", false)) {
|
||||
args.add("--start-paused");
|
||||
}
|
||||
if (intent.getBooleanExtra("enable-dart-profiling", false)) {
|
||||
args.add("--enable-dart-profiling");
|
||||
}
|
||||
if (!args.isEmpty()) {
|
||||
String[] argsArray = new String[args.size()];
|
||||
return args.toArray(argsArray);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user