【功能】提升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构建效率。
感谢提交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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论