Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
06fef5e3
E
engine
项目概览
liujiuri
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
06fef5e3
编写于
7月 29, 2020
作者:
C
Clement Skau
提交者:
GitHub
7月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable lazy-async-stacks by-default in all modes (2) (#19270)
上级
36c5f608
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
17 addition
and
16 deletion
+17
-16
runtime/dart_vm.cc
runtime/dart_vm.cc
+2
-1
shell/common/shell_unittests.cc
shell/common/shell_unittests.cc
+6
-3
shell/platform/fuchsia/dart_runner/dart_runner.cc
shell/platform/fuchsia/dart_runner/dart_runner.cc
+1
-2
shell/platform/fuchsia/dart_runner/embedder/BUILD.gn
shell/platform/fuchsia/dart_runner/embedder/BUILD.gn
+1
-0
shell/platform/fuchsia/dart_runner/kernel/BUILD.gn
shell/platform/fuchsia/dart_runner/kernel/BUILD.gn
+1
-2
shell/platform/fuchsia/dart_runner/vmservice/BUILD.gn
shell/platform/fuchsia/dart_runner/vmservice/BUILD.gn
+1
-0
shell/platform/fuchsia/flutter/component.cc
shell/platform/fuchsia/flutter/component.cc
+0
-4
shell/platform/fuchsia/flutter/kernel/BUILD.gn
shell/platform/fuchsia/flutter/kernel/BUILD.gn
+1
-2
testing/scenario_app/compile_ios_jit.sh
testing/scenario_app/compile_ios_jit.sh
+2
-1
testing/testing.gni
testing/testing.gni
+2
-1
未找到文件。
runtime/dart_vm.cc
浏览文件 @
06fef5e3
...
...
@@ -60,7 +60,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
};
...
...
shell/common/shell_unittests.cc
浏览文件 @
06fef5e3
...
...
@@ -285,6 +285,7 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
const
std
::
vector
<
fml
::
CommandLine
::
Option
>
options
=
{
#if !FLUTTER_RELEASE
fml
::
CommandLine
::
Option
(
"dart-flags"
,
"--lazy_async_stacks,--no-causal_async_stacks,"
"--max_profile_depth 1,--random_seed 42"
)
#endif
};
...
...
@@ -292,9 +293,11 @@ TEST_F(ShellTest, AllowedDartVMFlag) {
flutter
::
Settings
settings
=
flutter
::
SettingsFromCommandLine
(
command_line
);
#if !FLUTTER_RELEASE
EXPECT_EQ
(
settings
.
dart_flags
.
size
(),
2u
);
EXPECT_EQ
(
settings
.
dart_flags
[
0
],
"--max_profile_depth 1"
);
EXPECT_EQ
(
settings
.
dart_flags
[
1
],
"--random_seed 42"
);
EXPECT_EQ
(
settings
.
dart_flags
.
size
(),
4u
);
EXPECT_EQ
(
settings
.
dart_flags
[
0
],
"--lazy_async_stacks"
);
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
EXPECT_EQ
(
settings
.
dart_flags
.
size
(),
0u
);
#endif
...
...
shell/platform/fuchsia/dart_runner/dart_runner.cc
浏览文件 @
06fef5e3
...
...
@@ -35,9 +35,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"
,
#if !defined(FLUTTER_PROFILE)
"--systrace_timeline"
,
...
...
shell/platform/fuchsia/dart_runner/embedder/BUILD.gn
浏览文件 @
06fef5e3
...
...
@@ -53,6 +53,7 @@ template("create_aot_snapshot") {
args = [
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=vm-aot-assembly",
"--assembly=" + rebase_path(snapshot_assembly),
...
...
shell/platform/fuchsia/dart_runner/kernel/BUILD.gn
浏览文件 @
06fef5e3
...
...
@@ -74,9 +74,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",
"--use_bytecode_compiler",
"--enable_mirrors=false",
"--deterministic",
...
...
shell/platform/fuchsia/dart_runner/vmservice/BUILD.gn
浏览文件 @
06fef5e3
...
...
@@ -64,6 +64,7 @@ template("aot_snapshot") {
args = [
"--no_causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(snapshot_path),
...
...
shell/platform/fuchsia/flutter/component.cc
浏览文件 @
06fef5e3
...
...
@@ -392,10 +392,6 @@ 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"
};
// Disable code collection as it interferes with JIT code warmup
// by decreasing usage counters and flushing code which is still useful.
settings_
.
dart_flags
.
push_back
(
"--no-collect_code"
);
...
...
shell/platform/fuchsia/flutter/kernel/BUILD.gn
浏览文件 @
06fef5e3
...
...
@@ -78,9 +78,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",
"--use_bytecode_compiler",
"--enable_mirrors=false",
"--deterministic",
...
...
testing/scenario_app/compile_ios_jit.sh
浏览文件 @
06fef5e3
...
...
@@ -48,7 +48,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"
\
...
...
testing/testing.gni
浏览文件 @
06fef5e3
...
...
@@ -138,7 +138,8 @@ template("dart_snapshot_aot") {
]
args = [
"--causal_async_stacks",
"--no-causal_async_stacks",
"--lazy_async_stacks",
"--deterministic",
"--snapshot_kind=app-aot-elf",
"--elf=" + rebase_path(elf_object),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录