未验证 提交 06fef5e3 编写于 作者: C Clement Skau 提交者: GitHub

Enable lazy-async-stacks by-default in all modes (2) (#19270)

上级 36c5f608
...@@ -60,7 +60,8 @@ static const char* kDartLanguageArgs[] = { ...@@ -60,7 +60,8 @@ static const char* kDartLanguageArgs[] = {
// clang-format off // clang-format off
"--enable_mirrors=false", "--enable_mirrors=false",
"--background_compilation", "--background_compilation",
"--causal_async_stacks", "--no-causal_async_stacks",
"--lazy_async_stacks",
// clang-format on // clang-format on
}; };
......
...@@ -285,6 +285,7 @@ TEST_F(ShellTest, AllowedDartVMFlag) { ...@@ -285,6 +285,7 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
const std::vector<fml::CommandLine::Option> options = { const std::vector<fml::CommandLine::Option> options = {
#if !FLUTTER_RELEASE #if !FLUTTER_RELEASE
fml::CommandLine::Option("dart-flags", fml::CommandLine::Option("dart-flags",
"--lazy_async_stacks,--no-causal_async_stacks,"
"--max_profile_depth 1,--random_seed 42") "--max_profile_depth 1,--random_seed 42")
#endif #endif
}; };
...@@ -292,9 +293,11 @@ TEST_F(ShellTest, AllowedDartVMFlag) { ...@@ -292,9 +293,11 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
flutter::Settings settings = flutter::SettingsFromCommandLine(command_line); flutter::Settings settings = flutter::SettingsFromCommandLine(command_line);
#if !FLUTTER_RELEASE #if !FLUTTER_RELEASE
EXPECT_EQ(settings.dart_flags.size(), 2u); EXPECT_EQ(settings.dart_flags.size(), 4u);
EXPECT_EQ(settings.dart_flags[0], "--max_profile_depth 1"); EXPECT_EQ(settings.dart_flags[0], "--lazy_async_stacks");
EXPECT_EQ(settings.dart_flags[1], "--random_seed 42"); EXPECT_EQ(settings.dart_flags[1], "--no-causal_async_stacks");
EXPECT_EQ(settings.dart_flags[2], "--max_profile_depth 1");
EXPECT_EQ(settings.dart_flags[3], "--random_seed 42");
#else #else
EXPECT_EQ(settings.dart_flags.size(), 0u); EXPECT_EQ(settings.dart_flags.size(), 0u);
#endif #endif
......
...@@ -35,9 +35,8 @@ namespace { ...@@ -35,9 +35,8 @@ namespace {
const char* kDartVMArgs[] = { const char* kDartVMArgs[] = {
// clang-format off // clang-format off
// TODO(FL-117): Re-enable causal async stack traces when this issue is
// addressed.
"--no_causal_async_stacks", "--no_causal_async_stacks",
"--lazy_async_stacks",
#if !defined(FLUTTER_PROFILE) #if !defined(FLUTTER_PROFILE)
"--systrace_timeline", "--systrace_timeline",
......
...@@ -53,6 +53,7 @@ template("create_aot_snapshot") { ...@@ -53,6 +53,7 @@ template("create_aot_snapshot") {
args = [ args = [
"--no_causal_async_stacks", "--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic", "--deterministic",
"--snapshot_kind=vm-aot-assembly", "--snapshot_kind=vm-aot-assembly",
"--assembly=" + rebase_path(snapshot_assembly), "--assembly=" + rebase_path(snapshot_assembly),
......
...@@ -74,9 +74,8 @@ template("create_kernel_core_snapshot") { ...@@ -74,9 +74,8 @@ template("create_kernel_core_snapshot") {
tool = gen_snapshot_to_use tool = gen_snapshot_to_use
args = [ args = [
# TODO(FL-117): Re-enable causal async stack traces when this issue is
# addressed.
"--no_causal_async_stacks", "--no_causal_async_stacks",
"--lazy_async_stacks",
"--use_bytecode_compiler", "--use_bytecode_compiler",
"--enable_mirrors=false", "--enable_mirrors=false",
"--deterministic", "--deterministic",
......
...@@ -64,6 +64,7 @@ template("aot_snapshot") { ...@@ -64,6 +64,7 @@ template("aot_snapshot") {
args = [ args = [
"--no_causal_async_stacks", "--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic", "--deterministic",
"--snapshot_kind=app-aot-elf", "--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(snapshot_path), "--elf=" + rebase_path(snapshot_path),
......
...@@ -392,10 +392,6 @@ Application::Application( ...@@ -392,10 +392,6 @@ Application::Application(
settings_.task_observer_remove = std::bind( settings_.task_observer_remove = std::bind(
&CurrentMessageLoopRemoveAfterTaskObserver, std::placeholders::_1); &CurrentMessageLoopRemoveAfterTaskObserver, std::placeholders::_1);
// TODO(FL-117): Re-enable causal async stack traces when this issue is
// addressed.
settings_.dart_flags = {"--no_causal_async_stacks"};
// Disable code collection as it interferes with JIT code warmup // Disable code collection as it interferes with JIT code warmup
// by decreasing usage counters and flushing code which is still useful. // by decreasing usage counters and flushing code which is still useful.
settings_.dart_flags.push_back("--no-collect_code"); settings_.dart_flags.push_back("--no-collect_code");
......
...@@ -78,9 +78,8 @@ template("core_snapshot") { ...@@ -78,9 +78,8 @@ template("core_snapshot") {
tool = gen_snapshot_to_use tool = gen_snapshot_to_use
args = [ args = [
# TODO(FL-117): Re-enable causal async stack traces when this issue is
# addressed.
"--no_causal_async_stacks", "--no_causal_async_stacks",
"--lazy_async_stacks",
"--use_bytecode_compiler", "--use_bytecode_compiler",
"--enable_mirrors=false", "--enable_mirrors=false",
"--deterministic", "--deterministic",
......
...@@ -48,7 +48,8 @@ echo "Compiling JIT Snapshot..." ...@@ -48,7 +48,8 @@ echo "Compiling JIT Snapshot..."
"$DEVICE_TOOLS/gen_snapshot" --deterministic \ "$DEVICE_TOOLS/gen_snapshot" --deterministic \
--enable-asserts \ --enable-asserts \
--causal_async_stacks \ --no-causal_async_stacks \
--lazy_async_stacks \
--isolate_snapshot_instructions="$OUTDIR/isolate_snapshot_instr" \ --isolate_snapshot_instructions="$OUTDIR/isolate_snapshot_instr" \
--snapshot_kind=app-jit \ --snapshot_kind=app-jit \
--load_vm_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" \ --load_vm_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" \
......
...@@ -138,7 +138,8 @@ template("dart_snapshot_aot") { ...@@ -138,7 +138,8 @@ template("dart_snapshot_aot") {
] ]
args = [ args = [
"--causal_async_stacks", "--no-causal_async_stacks",
"--lazy_async_stacks",
"--deterministic", "--deterministic",
"--snapshot_kind=app-aot-elf", "--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(elf_object), "--elf=" + rebase_path(elf_object),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册