35 Star 160 Fork 672

OpenHarmony / arkcompiler_ets_runtime

 / 详情

[新需求]: ark_aot_compiler构建耗时466秒,libark_jsruntime.so耗时293秒,ark_stub_compiler耗时78秒,期望通过并发、拆分、重构等手段将耗时提升到30秒以内

待办的
创建于  
2023-07-04 17:30

新需求提供了什么功能?

【功能】提升system构建效率
【现状】OpenHarmony编译system总耗时14min,ark_aot_compiler构建耗时466秒,即使关闭flto构建耗时156秒,成为system效率提升提升的关键路径,严重阻塞了系统组件的构建效率提升。
从trace看ark_aot_compiler耗时是其他模块耗时的几百倍
输入图片说明
【flto打开的日志数据】
{"name": "arkcompiler/ets_runtime/ark_aot_compiler, exe.unstripped/arkcompiler/ets_runtime/ark_aot_compiler", "cat": "targets", "ph": "X", "ts": "78894000", "dur": "466012000", "pid": "0", "tid": "12", "args": {}},
{"name": "arkcompiler/ets_runtime/libark_jsruntime.so, lib.unstripped/arkcompiler/ets_runtime/libark_jsruntime.so", "cat": "targets", "ph": "X", "ts": "233945000", "dur": "293006000", "pid": "0", "tid": "97", "args": {}},
{"name": "clang_x64/arkcompiler/ets_runtime/ark_stub_compiler, clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_stub_compiler", "cat": "targets", "ph": "X", "ts": "78734000", "dur": "139325000", "pid": "0", "tid": "15", "args": {}},
【关闭flto的日志数据】
arkcompiler/ets_runtime/ark_aot_compiler: 156165
arkcompiler/ets_runtime/libark_jsruntime.so: 102525
clang_x64/arkcompiler/ets_runtime/ark_stub_compiler: 87104

该需求带来的价值、应用场景?

【价值】门禁 编译任务的效率目标是7min,ark_aot_compiler、libark_jsruntime、ark_stub_compiler耗时提升到30秒以内,从而提升system构建效率。

评论 (1)

周超 创建了任务
周超 添加了
 
enhancement
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @gonggong @孙哲 @weng-changcheng @Gargoyle.h 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @gonggong @孙哲 @weng-changcheng @Gargoyle.h for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
周超 修改了标题
周超 修改了描述
周超 修改了描述
Gymee 任务状态待办的 修改为进行中
Gymee 任务状态进行中 修改为待办的

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
1
https://gitee.com/openharmony/arkcompiler_ets_runtime.git
git@gitee.com:openharmony/arkcompiler_ets_runtime.git
openharmony
arkcompiler_ets_runtime
arkcompiler_ets_runtime

搜索帮助