Enable lazy-async-stacks by-default in all modes (Take 4) (#21802)

This commit is contained in:
Clement Skau 2020-10-20 10:31:15 +02:00 committed by GitHub
parent 2ef0f4228c
commit e78e405e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 12 deletions

View File

@ -59,7 +59,8 @@ static const char* kDartLanguageArgs[] = {
// clang-format off
"--enable_mirrors=false",
"--background_compilation",
"--causal_async_stacks",
"--no-causal_async_stacks",
"--lazy_async_stacks",
// clang-format on
};

View File

@ -316,6 +316,8 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
std::vector<const char*> flags = {
"--enable-isolate-groups",
"--no-enable-isolate-groups",
"--lazy_async_stacks",
"--no-causal_async_stacks",
};
#if !FLUTTER_RELEASE
flags.push_back("--max_profile_depth 1");

View File

@ -36,9 +36,8 @@ namespace {
const char* kDartVMArgs[] = {
// clang-format off
// TODO(FL-117): Re-enable causal async stack traces when this issue is
// addressed.
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--systrace_timeline",
"--timeline_streams=Compiler,Dart,Debugger,Embedder,GC,Isolate,VM",

View File

@ -47,6 +47,7 @@ template("create_aot_snapshot") {
args = [
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=vm-aot-assembly",
"--assembly=" + rebase_path(snapshot_assembly),

View File

@ -68,9 +68,8 @@ template("create_kernel_core_snapshot") {
tool = gen_snapshot_to_use
args = [
# TODO(FL-117): Re-enable causal async stack traces when this issue is
# addressed.
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--enable_mirrors=false",
"--deterministic",
"--snapshot_kind=core-jit",

View File

@ -58,6 +58,7 @@ template("aot_snapshot") {
args = [
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(snapshot_path),

View File

@ -402,9 +402,7 @@ Application::Application(
settings_.task_observer_remove = std::bind(
&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"};
settings_.dart_flags = {"--no_causal_async_stacks", "--lazy_async_stacks"};
// Don't collect CPU samples from Dart VM C++ code.
settings_.dart_flags.push_back("--no_profile_vm");

View File

@ -72,9 +72,8 @@ template("core_snapshot") {
tool = gen_snapshot_to_use
args = [
# TODO(FL-117): Re-enable causal async stack traces when this issue is
# addressed.
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--enable_mirrors=false",
"--deterministic",
"--snapshot_kind=core-jit",

View File

@ -74,7 +74,8 @@ echo "Compiling JIT Snapshot..."
"$DEVICE_TOOLS/gen_snapshot" --deterministic \
--enable-asserts \
--causal_async_stacks \
--no-causal_async_stacks \
--lazy_async_stacks \
--isolate_snapshot_instructions="$OUTDIR/isolate_snapshot_instr" \
--snapshot_kind=app-jit \
--load_vm_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" \

View File

@ -129,7 +129,8 @@ template("dart_snapshot_aot") {
outputs = [ elf_object ]
args = [
"--causal_async_stacks",
"--no-causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(elf_object),